Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- nextcloud:
- image: nextcloud:apache
- restart: always
- ports:
- - 4180:80
- volumes:
- - /home/username/nextcloud/data:/var/www/html
- networks:
- - redisnet
- - dbnet
- - oonet
- environment:
- - REDIS_HOST=redis
- - MYSQL_HOST=db
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- - MYSQL_PASSWORD=supersecretpasswordhere
- redis:
- image: redis:alpine
- restart: always
- networks:
- - redisnet
- expose:
- - 6379
- db:
- image: mariadb:10.5
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- restart: always
- volumes:
- - /home/username/nextcloud/db:/var/lib/mysql
- networks:
- - dbnet
- environment:
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- - MYSQL_ROOT_PASSWORD=nextcloud
- - MYSQL_PASSWORD=supersecretpasswordhere
- expose:
- - 3306
- onlyoffice-document-server:
- container_name: onlyoffice-document-server
- hostname: onlyoffice-document-server
- image: onlyoffice/documentserver:latest
- restart: always
- networks:
- - oonet
- environment:
- - JWT_SECRET=generate-your-own-jwt-secret-here
- ports:
- - 21122:80
- expose:
- - '80'
- - '443'
- volumes:
- - /home/username/nextcloud/oo-data:/var/www/onlyoffice/Data
- - /home/username/nextcloud/oo-logs:/var/log/onlyoffice
- networks:
- dbnet:
- redisnet:
- oonet:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement