nextcloud-config/docker-compose.yml

42 lines
744 B
YAML
Raw Normal View History

2020-02-07 18:14:16 +00:00
version: '3'
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
env_file:
- db.env
app:
image: nextcloud:fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html
2020-02-08 17:36:07 +00:00
- ./themes:/var/www/html/themes:ro
2020-02-07 18:14:16 +00:00
environment:
- MYSQL_HOST=db
env_file:
- db.env
- app.env
depends_on:
- db
web:
image: nginx:alpine
restart: always
ports:
2020-02-08 16:39:38 +00:00
- 127.0.0.1:8080:80
2020-02-07 18:14:16 +00:00
volumes:
- nextcloud:/var/www/html:ro
2020-02-08 17:36:07 +00:00
- ./themes:/var/www/html/themes:ro
2020-02-07 18:14:16 +00:00
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
volumes:
db:
nextcloud: