nxcloud/docker-compose.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2024-04-06 15:53:06 +00:00
---
services:
nginx:
container_name: nginx-nextcloud
image: nginx:latest
2024-04-06 17:09:38 +00:00
ports:
- 80:80
- 443:443
2024-04-06 15:53:06 +00:00
volumes:
- ${NEXTCLOUD_DIR}:/var/www/html
- ${DATA_DIR}:/data
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- nextcloud
depends_on:
- php-fpm-nextcloud
- redis-nextcloud
- mariadb-nextcloud
php-fpm-nextcloud:
container_name: php-fpm-nextcloud
build: ./php-fpm
volumes:
- ${NEXTCLOUD_DIR}:/var/www/html
- ${DATA_DIR}:/data
networks:
- nextcloud
mariadb-nextcloud:
container_name: mariadb-nextcloud
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ./mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASS}
- MYSQL_PASSWORD=${MARIADB_PASS}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- nextcloud
redis-nextcloud:
container_name: redis-nextcloud
image: redis:latest
restart: unless-stopped
networks:
- nextcloud
networks:
nextcloud:
driver: bridge