mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-16 00:04:48 +02:00
Update examples section according to the latest docker compose requirements.
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
This commit is contained in:
parent
a1e93f429c
commit
6dc29f2a72
21 changed files with 675 additions and 148 deletions
|
@ -1,10 +1,12 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:10.6
|
||||
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||
image: mariadb:10.8.2
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
volumes:
|
||||
- db:/var/lib/mysql:Z
|
||||
environment:
|
||||
|
@ -21,6 +23,10 @@ services:
|
|||
app:
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
volumes:
|
||||
- nextcloud:/var/www/html:z
|
||||
environment:
|
||||
|
@ -34,6 +40,10 @@ services:
|
|||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
# Added proxy container dependency below.
|
||||
# It is unclear on when or why it happens, but sometimes NC manages to start before the proxy
|
||||
# and it breaks for whatever weird reason resulting in the need of manual proxy container restart.
|
||||
- proxy
|
||||
networks:
|
||||
- proxy-tier
|
||||
- default
|
||||
|
@ -41,6 +51,10 @@ services:
|
|||
cron:
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
volumes:
|
||||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
|
@ -51,15 +65,20 @@ services:
|
|||
proxy:
|
||||
build: ./proxy
|
||||
restart: always
|
||||
# Logging to syslog, it's best when combining with fail2ban on the host.
|
||||
logging:
|
||||
driver: "syslog"
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
labels:
|
||||
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
|
||||
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
|
||||
volumes:
|
||||
- certs:/etc/nginx/certs:z,ro
|
||||
- conf.d:/etc/nginx/conf.d:z
|
||||
- certs:/etc/nginx/certs:ro:z
|
||||
- vhost.d:/etc/nginx/vhost.d:z
|
||||
- html:/usr/share/nginx/html:z
|
||||
- dhparam:/etc/nginx/dhparam:z
|
||||
- /var/run/docker.sock:/tmp/docker.sock:z,ro
|
||||
networks:
|
||||
- proxy-tier
|
||||
|
@ -67,9 +86,16 @@ services:
|
|||
letsencrypt-companion:
|
||||
image: nginxproxy/acme-companion
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
environment:
|
||||
- DEFAULT_EMAIL=
|
||||
volumes:
|
||||
- certs:/etc/nginx/certs:z
|
||||
- acme:/etc/acme.sh:z
|
||||
- conf.d:/etc/nginx/conf.d:z
|
||||
- vhost.d:/etc/nginx/vhost.d:z
|
||||
- html:/usr/share/nginx/html:z
|
||||
- /var/run/docker.sock:/var/run/docker.sock:z,ro
|
||||
|
@ -100,6 +126,8 @@ volumes:
|
|||
acme:
|
||||
vhost.d:
|
||||
html:
|
||||
dhparam:
|
||||
conf.d:
|
||||
|
||||
networks:
|
||||
proxy-tier:
|
Loading…
Add table
Add a link
Reference in a new issue