Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- container_name: nextcloud-db
- image: mariadb
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- restart: always
- volumes:
- - nextcloud_db:/var/lib/mysql
- networks:
- - nextcloud
- expose:
- - '3306'
- environment:
- - MYSQL_ROOT_PASSWORD={password}
- - MYSQL_PASSWORD={password}
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER={user}
- app:
- container_name: nextcloud-app
- image: nextcloud:fpm
- stdin_open: true
- tty: true
- restart: always
- expose:
- - '80'
- - '9000'
- networks:
- - nextcloud
- volumes:
- - nextcloud_data:/var/www/html
- links:
- - db
- oods:
- container_name: nextcloud-oods
- image: onlyoffice/documentserver:latest
- stdin_open: true
- tty: true
- restart: always
- networks:
- - nextcloud
- expose:
- - '80'
- - '443'
- volumes:
- - nextcloud-oods-data:/var/www/onlyoffice/Data
- - nextcloud-oods-logs:/var/log/onlyoffice
- nginx:
- container_name: nextcloud-nginx
- image: nginx
- stdin_open: true
- tty: true
- restart: always
- ports:
- - 20080:80
- - 20443:443
- networks:
- - nextcloud
- volumes:
- - /var/lib/docker/files/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
- volumes_from:
- - app
- links:
- - app
- networks:
- nextcloud:
- driver: 'bridge'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement