2017-08-02 09:52:53 +00:00
|
|
|
version: '3'
|
|
|
|
|
2017-08-25 15:18:25 +00:00
|
|
|
services:
|
2017-08-02 09:52:53 +00:00
|
|
|
db:
|
2018-04-19 16:47:19 +00:00
|
|
|
image: mariadb
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
2017-08-25 15:18:25 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=
|
|
|
|
env_file:
|
|
|
|
- db.env
|
2017-08-02 09:52:53 +00:00
|
|
|
|
2017-08-25 15:18:25 +00:00
|
|
|
redis:
|
2018-11-15 14:49:33 +00:00
|
|
|
image: redis:alpine
|
2017-08-25 15:18:25 +00:00
|
|
|
restart: always
|
|
|
|
|
2018-08-01 20:55:25 +00:00
|
|
|
app:
|
2019-02-07 11:33:13 +00:00
|
|
|
image: nextcloud:fpm-alpine
|
2017-08-25 15:18:25 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
2017-09-05 21:41:20 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_HOST=db
|
2019-02-07 11:33:13 +00:00
|
|
|
- REDIS_HOST=redis
|
2017-08-25 15:18:25 +00:00
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
|
|
|
|
web:
|
|
|
|
build: ./web
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html:ro
|
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=
|
|
|
|
- LETSENCRYPT_HOST=
|
|
|
|
- LETSENCRYPT_EMAIL=
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
- default
|
|
|
|
|
|
|
|
cron:
|
2019-02-07 11:33:13 +00:00
|
|
|
image: nextcloud:fpm-alpine
|
2017-08-25 15:18:25 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
2018-01-30 12:16:40 +00:00
|
|
|
entrypoint: /cron.sh
|
2017-08-25 15:18:25 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2017-08-02 09:52:53 +00:00
|
|
|
|
|
|
|
proxy:
|
2017-08-25 15:18:25 +00:00
|
|
|
build: ./proxy
|
|
|
|
restart: always
|
2017-08-02 09:52:53 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
2017-08-25 15:18:25 +00:00
|
|
|
labels:
|
|
|
|
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
|
2017-08-02 09:52:53 +00:00
|
|
|
volumes:
|
2017-08-25 15:18:25 +00:00
|
|
|
- certs:/etc/nginx/certs:ro
|
2017-08-02 09:52:53 +00:00
|
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
|
|
|
|
letsencrypt-companion:
|
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
2017-08-25 15:18:25 +00:00
|
|
|
restart: always
|
2017-08-02 09:52:53 +00:00
|
|
|
volumes:
|
2017-08-25 15:18:25 +00:00
|
|
|
- certs:/etc/nginx/certs
|
2017-08-02 09:52:53 +00:00
|
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
networks:
|
|
|
|
- proxy-tier
|
2017-08-25 15:18:25 +00:00
|
|
|
depends_on:
|
|
|
|
- proxy
|
2017-08-02 09:52:53 +00:00
|
|
|
|
2017-08-25 15:18:25 +00:00
|
|
|
volumes:
|
2017-08-02 09:52:53 +00:00
|
|
|
db:
|
2017-08-25 15:18:25 +00:00
|
|
|
nextcloud:
|
|
|
|
certs:
|
|
|
|
vhost.d:
|
|
|
|
html:
|
2017-08-16 15:21:07 +00:00
|
|
|
|
2017-08-25 15:18:25 +00:00
|
|
|
networks:
|
|
|
|
proxy-tier:
|