You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.4 KiB

version: "3"
services:
nextcloud-app: # app-server
container_name: nextcloud-app
image: nextcloud:fpm
stdin_open: true
tty: true
restart: always
expose:
- "80"
- "9000"
networks:
- default
- saibelstefan-vm-01
depends_on:
- nextcloud-onlyoffice
- nextcloud-db
volumes:
- /srv/data/nextcloud/nextcloud:/var/www/html
nextcloud-onlyoffice:
container_name: nextcloud-onlyoffice
image: onlyoffice/documentserver:latest
stdin_open: true
tty: true
restart: always
networks:
- default
- saibelstefan-vm-01
expose:
- "80"
- "443"
volumes:
- /srv/data/nextcloud/onlyoffice/data:/var/www/onlyoffice/Data
- /srv/data/nextcloud/onlyoffice/log:/var/log/onlyoffice
nextcloud-nginx:
container_name: nextcloud-nginx
image: nginx
stdin_open: true
tty: true
restart: always
networks:
- default
- saibelstefan-vm-01
depends_on:
- nextcloud-app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /srv/data/nextcloud/nextcloud:/var/www/html
nextcloud-db:
container_name: nextcloud_db
image: mariadb:latest
environment:
- MYSQL_DATABASE=nextcloud_db
- MYSQL_ROOT_PASSWORD=nextcloud_pw
volumes:
- /srv/data/nextcloud/database/:/var/lib/mysql
networks:
- default
- saibelstefan-vm-01
networks:
saibelstefan-vm-01:
external: true