2024-04-30 12:35:08 +00:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
nc_db:
|
2024-05-24 00:03:39 +02:00
|
|
|
image: mariadb:10.11
|
2024-04-30 12:35:08 +00:00
|
|
|
container_name: nc_db
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
environment:
|
|
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
|
|
- MARIADB_DISABLE_UPGRADE_BACKUP=1
|
|
|
|
env_file:
|
2024-04-30 14:02:55 +00:00
|
|
|
- mariadb.env
|
|
|
|
- nextcloud.env
|
2024-05-07 00:42:02 +02:00
|
|
|
volumes:
|
|
|
|
- ./volumes/db:/var/lib/mysql
|
|
|
|
restart: unless-stopped
|
2024-04-30 12:35:08 +00:00
|
|
|
|
|
|
|
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:
|
2024-04-30 14:02:55 +00:00
|
|
|
- nextcloud.env
|
2024-05-07 00:42:02 +02:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:28080:80"
|
|
|
|
volumes:
|
|
|
|
- ./volumes/nextcloud:/var/www/html
|
2024-04-30 12:35:08 +00:00
|
|
|
depends_on:
|
|
|
|
- nc_db
|
|
|
|
- nc_redis
|
2024-05-07 00:42:02 +02:00
|
|
|
restart: unless-stopped
|
2024-04-30 12:35:08 +00:00
|
|
|
|
|
|
|
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
|