docker-compose-homeserver/nextcloud/docker-compose.yml

33 lines
642 B
YAML
Raw Permalink Normal View History

2021-03-14 13:34:40 +00:00
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ./db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_PASSWORD=changeme
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 80:80
- 443:443
links:
- db
volumes:
- ./nextcloud:/var/www/html
- ./nextcloud_data:/var/www/html/data
restart: always