server/NextCloud/docker-compose.yml

45 lines
847 B
YAML

version: '3.8'
services:
nextcloud:
image: nextcloud
container_name: nextcloud
links:
- db
volumes:
- ./nextcloud:/var/www/html
networks:
- services
- nextcloud
depends_on:
- traefik
- db
environment:
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_HOST=db
restart: unless-stopped
db:
image: mariadb
container_name: nextclouddb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./db:/var/lib/mysql
networks:
- nextcloud
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
restart: unless-stopped
networks:
services:
external: true
nextcloud:
name: nextcloud