server/NextCloud/docker-compose.yml

45 lines
847 B
YAML
Raw Normal View History

2022-06-01 11:10:06 +00:00
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
2022-06-01 11:10:06 +00:00
db:
image: mariadb
container_name: nextclouddb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./db:/var/lib/mysql
networks:
- nextcloud
2022-06-01 11:10:06 +00:00
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_USER=nextcloud
2022-06-01 11:10:06 +00:00
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
restart: unless-stopped
2022-06-01 11:10:06 +00:00
networks:
services:
external: true
2022-06-01 11:10:06 +00:00
nextcloud:
name: nextcloud