Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: mariadb:10.5
- restart: always
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- volumes:
- - ./data/db:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=password
- - MYSQL_PASSWORD=password
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- app:
- container_name: app-server
- image: nextcloud:fpm
- restart: always
- links:
- - db
- expose:
- - '80'
- - '9000'
- volumes:
- - ./data/app_data:/var/www/html
- environment:
- - MYSQL_PASSWORD=password
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- - MYSQL_HOST=db
- onlyoffice-document-server:
- container_name: onlyoffice-document-server
- image: onlyoffice/documentserver:latest
- restart: always
- environment:
- - JWT_ENABLED=false
- expose:
- - '80'
- - '443'
- volumes:
- - ./data/document_data:/var/www/onlyoffice/Data
- - ./data/document_log:/var/log/onlyoffice
- nginx:
- container_name: nginx-server
- image: nginx
- restart: always
- ports:
- - 8050:80
- - 8443:443
- volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf
- - ./data/app_data:/var/www/html
- #Then install the only office app for nextcloud
- #set ONLYOFFICE Docs address to `/ds-vpath/`
- #you'll have to disable certificate verification unless you want to set up ssl certificates but it's kinda useless here
- #set `ONLYOFFICE Docs address for internal requests from the server` to `http://onlyoffice-document-server/`
- #set `Server address for internal requests from ONLYOFFICE Docs` to `http://nginx-server/`
- #in the data/app_data/config directory, edit config.php.
- #'overwrite.cli.url' => 'https://my.domain.name',
- #'overwriteprotocol' => 'https',
- #'overwritehost' => 'my.domain.name',
- #note: I have a reverse proxy server in front of of this, and it has ssl certificates.
Advertisement
Add Comment
Please, Sign In to add comment