0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-12-27 19:36:13 +01:00
nextcloud-docker/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml

86 lines
1.5 KiB
YAML
Raw Normal View History

2017-08-02 11:52:53 +02:00
version: '3'
2017-08-25 17:18:25 +02:00
services:
2017-08-02 11:52:53 +02:00
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
2017-08-25 17:18:25 +02:00
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file:
- db.env
2017-08-02 11:52:53 +02:00
2017-08-25 17:18:25 +02:00
redis:
image: redis
restart: always
app:
build: ./app
restart: always
volumes:
- nextcloud:/var/www/html
environment:
- VIRTUAL_HOST=
- LETSENCRYPT_HOST=
- LETSENCRYPT_EMAIL=
- MYSQL_HOST=db
2017-08-25 17:18:25 +02:00
env_file:
- db.env
depends_on:
- db
- redis
networks:
- proxy-tier
- default
cron:
build: ./app
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
2017-08-25 17:18:25 +02:00
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
2017-08-25 17:18:25 +02:00
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
2017-08-02 11:52:53 +02:00
volumes:
2017-08-25 17:18:25 +02:00
- certs:/etc/nginx/certs:ro
2017-08-02 11:52:53 +02: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 17:18:25 +02:00
restart: always
2017-08-02 11:52:53 +02:00
volumes:
2017-08-25 17:18:25 +02:00
- certs:/etc/nginx/certs
2017-08-02 11:52:53 +02: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 17:18:25 +02:00
depends_on:
- proxy
2017-08-02 11:52:53 +02:00
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:
vhost.d:
html:
2017-08-25 17:18:25 +02:00
networks:
proxy-tier: