docker-compose/nextcloud/docker-compose.yml

49 lines
1 KiB
YAML
Raw Normal View History

---
services:
nc_db:
image: mariadb:10.5
container_name: nc_db
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
environment:
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- mariadb.env
- nextcloud.env
2024-05-07 00:42:02 +02:00
volumes:
- ./volumes/db:/var/lib/mysql
restart: unless-stopped
nc_redis:
image: redis:alpine
container_name: nc_redis
restart: unless-stopped
nc_app:
image: nextcloud:apache
container_name: nc_app
environment:
- MYSQL_HOST=nc_db
- REDIS_HOST=nc_redis
env_file:
- nextcloud.env
2024-05-07 00:42:02 +02:00
ports:
- "127.0.0.1:28080:80"
volumes:
- ./volumes/nextcloud:/var/www/html
depends_on:
- nc_db
- nc_redis
2024-05-07 00:42:02 +02:00
restart: unless-stopped
nc_cron:
image: nextcloud:apache
container_name: nc_cron
volumes:
- ./volumes/nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- nc_db
- nc_redis
2024-05-07 00:42:02 +02:00
restart: unless-stopped