2018-05-16 20:56:19 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb
|
2018-08-01 20:02:44 +00:00
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
2018-08-01 19:59:11 +00:00
|
|
|
restart: always
|
2018-05-16 20:56:19 +00:00
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
2018-08-01 19:59:11 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=
|
2018-05-16 20:56:19 +00:00
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
|
2018-08-01 19:59:11 +00:00
|
|
|
app:
|
2018-05-16 20:56:19 +00:00
|
|
|
image: nextcloud:fpm
|
2018-08-01 19:59:11 +00:00
|
|
|
restart: always
|
2018-05-16 20:56:19 +00:00
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
|
|
|
environment:
|
|
|
|
- MYSQL_HOST=db
|
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
web:
|
2018-08-01 19:59:11 +00:00
|
|
|
build: ./web
|
|
|
|
restart: always
|
2018-05-16 20:56:19 +00:00
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html:ro
|
|
|
|
environment:
|
2018-08-01 19:59:11 +00:00
|
|
|
- VIRTUAL_HOST=
|
2018-05-16 20:56:19 +00:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
- default
|
|
|
|
|
|
|
|
proxy:
|
2018-08-01 19:59:11 +00:00
|
|
|
build: ./proxy
|
|
|
|
restart: always
|
2018-05-16 20:56:19 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- certs:/etc/nginx/certs:ro
|
|
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
networks:
|
|
|
|
- proxy-tier
|
|
|
|
depends_on:
|
|
|
|
- omgwtfssl
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
nextcloud:
|
|
|
|
certs:
|
|
|
|
vhost.d:
|
|
|
|
html:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy-tier:
|