OnlyOffice
Deployment and configuration of OnlyOffice as an optional Docker Compose service.
📋 Prerequisites
⚠️ To enable OnlyOffice integration, first make sure that the reverse proxy configuration is enabled.
⚡ Activation
Edit ./config/nginx/nginx.conf, uncomment the following line at the end of the file:
include onlyoffice.conf;
In docker-compose.yaml, the following lines must be uncommented:
include:
- ./config/nginx/docker-compose.nginx.yaml
- ./config/onlyoffice/docker-compose.onlyoffice.yaml
Edit environment.yaml to enable the integration:
applications:
files:
onlyoffice:
# enable integration
enabled: true
# use the same secret as in docker-compose.yaml
secret: 'onlyOfficeSecret'
Replace onlyOfficeSecret with a secure value, and make sure it matches the one defined in
./config/onlyoffice/docker-compose.onlyoffice.yaml:
services:
onlyoffice:
environment:
- 'JWT_SECRET=onlyOfficeSecret'
docker compose up -d && docker compose restart nginx sync_in to apply the changes
🌐 Access
Sync-in and OnlyOffice run in Docker containers and communicate via the Nginx reverse proxy.
It is essential to access the interface using either the server IP address or a properly configured domain name.
Accessing Sync-in via http://localhost or http://127.0.0.1 will prevent OnlyOffice from working properly (documents will neither be
displayed nor edited).