Add NextCloud service

This commit is contained in:
2025-12-15 12:00:28 +01:00
commit b2f8d6456c
6 changed files with 268 additions and 0 deletions

51
docker-compose.yaml Normal file
View File

@@ -0,0 +1,51 @@
name: tvcloud
services:
web:
build:
dockerfile: ./nginx.Dockerfile
networks:
- front-tier
ports:
- "80:80"
- "443:443"
volumes:
- nextcloud:/var/www/html:ro
depends_on:
- cloud
cloud:
image: nextcloud:31-fpm
env_file:
- db.env
environment:
- MYSQL_HOST=db
networks:
- front-tier
- back-tier
volumes:
- nextcloud:/var/www/html
depends_on:
- db
db:
image: mariadb:11-ubi
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
env_file:
- db.env
environment:
- MARIADB_ROOT_PASSWORD=pswd
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
networks:
- back-tier
volumes:
- mariadb:/var/lib/mysql
networks:
front-tier:
back-tier:
volumes:
mariadb:
nextcloud: