55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
---
|
|
services:
|
|
|
|
nginx:
|
|
container_name: nginx-nextcloud
|
|
image: nginx:latest
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
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
|