Skip to main content

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:
# activer l’intégration
enabled: true
# utiliser le même secret que dans 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
info

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.

warning

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).