Add NextCloud service
This commit is contained in:
51
docker-compose.yaml
Normal file
51
docker-compose.yaml
Normal 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:
|
||||
Reference in New Issue
Block a user