2017-08-25 17:18:25 +02:00
|
|
|
services:
|
2017-08-02 11:52:53 +02:00
|
|
|
db:
|
2024-04-25 16:59:02 +02:00
|
|
|
image: mariadb:10.6
|
2024-09-24 22:32:33 +02:00
|
|
|
command: --transaction-isolation=READ-COMMITTED --log-bin --binlog-format=ROW
|
2017-08-25 17:18:25 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-03-28 18:05:53 +02:00
|
|
|
- db:/var/lib/mysql:Z
|
2017-08-25 17:18:25 +02:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=
|
2022-09-06 18:45:45 +02:00
|
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
|
|
- MARIADB_DISABLE_UPGRADE_BACKUP=1
|
2017-08-25 17:18:25 +02:00
|
|
|
env_file:
|
|
|
|
- db.env
|
2017-08-02 11:52:53 +02:00
|
|
|
|
2021-04-26 19:15:37 +02:00
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
|
2018-08-01 22:55:25 +02:00
|
|
|
app:
|
2017-09-05 23:41:20 +02:00
|
|
|
image: nextcloud:apache
|
2017-08-25 17:18:25 +02:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-03-28 18:05:53 +02:00
|
|
|
- nextcloud:/var/www/html:z
|
2017-08-25 17:18:25 +02:00
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=
|
|
|
|
- LETSENCRYPT_HOST=
|
|
|
|
- LETSENCRYPT_EMAIL=
|
2017-09-05 23:41:20 +02:00
|
|
|
- MYSQL_HOST=db
|
2021-04-26 19:15:37 +02:00
|
|
|
- REDIS_HOST=redis
|
2017-08-25 17:18:25 +02:00
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
depends_on:
|
|
|
|
- db
|
2021-04-26 19:15:37 +02:00
|
|
|
- redis
|
2024-04-18 15:30:37 +02:00
|
|
|
# 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
|
2017-08-25 17:18:25 +02:00
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
- default
|
2017-08-02 11:52:53 +02:00
|
|
|
|
2021-04-26 19:15:37 +02:00
|
|
|
cron:
|
|
|
|
image: nextcloud:apache
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-03-28 18:05:53 +02:00
|
|
|
- nextcloud:/var/www/html:z
|
2021-04-26 19:15:37 +02:00
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
|
2017-08-02 11:52:53 +02:00
|
|
|
proxy:
|
2017-08-25 17:18:25 +02:00
|
|
|
build: ./proxy
|
|
|
|
restart: always
|
2017-08-02 11:52:53 +02:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
2022-01-14 11:35:13 +01:00
|
|
|
labels:
|
2024-04-18 15:30:37 +02:00
|
|
|
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
|
2017-08-02 11:52:53 +02:00
|
|
|
volumes:
|
2024-05-16 11:11:19 +02:00
|
|
|
- certs:/etc/nginx/certs:ro,z
|
2023-03-28 18:05:53 +02:00
|
|
|
- vhost.d:/etc/nginx/vhost.d:z
|
|
|
|
- html:/usr/share/nginx/html:z
|
2024-04-18 15:30:37 +02:00
|
|
|
- dhparam:/etc/nginx/dhparam:z
|
2023-03-28 18:05:53 +02:00
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:z,ro
|
2017-08-02 11:52:53 +02:00
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
|
|
|
|
letsencrypt-companion:
|
2021-12-10 10:53:51 +01:00
|
|
|
image: nginxproxy/acme-companion
|
2017-08-25 17:18:25 +02:00
|
|
|
restart: always
|
2024-04-18 15:30:37 +02:00
|
|
|
environment:
|
|
|
|
- DEFAULT_EMAIL=
|
2017-08-02 11:52:53 +02:00
|
|
|
volumes:
|
2023-03-28 18:05:53 +02:00
|
|
|
- certs:/etc/nginx/certs:z
|
|
|
|
- acme:/etc/acme.sh:z
|
|
|
|
- vhost.d:/etc/nginx/vhost.d:z
|
|
|
|
- html:/usr/share/nginx/html:z
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:z,ro
|
2017-08-02 11:52:53 +02:00
|
|
|
networks:
|
|
|
|
- proxy-tier
|
2017-08-25 17:18:25 +02:00
|
|
|
depends_on:
|
|
|
|
- proxy
|
2017-08-02 11:52:53 +02:00
|
|
|
|
2021-04-26 19:15:37 +02:00
|
|
|
# self signed
|
|
|
|
# omgwtfssl:
|
|
|
|
# image: paulczar/omgwtfssl
|
|
|
|
# restart: "no"
|
|
|
|
# volumes:
|
|
|
|
# - certs:/certs
|
|
|
|
# environment:
|
|
|
|
# - SSL_SUBJECT=servhostname.local
|
|
|
|
# - CA_SUBJECT=my@example.com
|
|
|
|
# - SSL_KEY=/certs/servhostname.local.key
|
|
|
|
# - SSL_CSR=/certs/servhostname.local.csr
|
|
|
|
# - SSL_CERT=/certs/servhostname.local.crt
|
|
|
|
# networks:
|
|
|
|
# - proxy-tier
|
|
|
|
|
2017-08-25 17:18:25 +02:00
|
|
|
volumes:
|
2017-08-02 11:52:53 +02:00
|
|
|
db:
|
2017-08-25 17:18:25 +02:00
|
|
|
nextcloud:
|
|
|
|
certs:
|
2021-08-23 14:42:38 +02:00
|
|
|
acme:
|
2017-08-25 17:18:25 +02:00
|
|
|
vhost.d:
|
|
|
|
html:
|
2024-04-18 15:30:37 +02:00
|
|
|
dhparam:
|
2017-08-02 11:52:53 +02:00
|
|
|
|
2017-08-25 17:18:25 +02:00
|
|
|
networks:
|
|
|
|
proxy-tier:
|