-
-
Notifications
You must be signed in to change notification settings - Fork 239
How to configure collabora CODE with docker
Please prefer the Nextcloud community how-to
Note
Be aware, this how to is as-is and is not supported by the Nextcloud snap team!
- CODE Docker image — SDK https://sdk.collaboraonline.com/ documentation
- Configuration — SDK https://sdk.collaboraonline.com/ documentation
This example will require Docker and a Reverse proxy for the CODE server.
Install Docker on host. Create a DNS for subdomain like office.mydomain.tld. Create a proxy host for http on port 9980 on reverse proxy pointing to that host and get the domain name encrypted.
name: 'code'
services:
collabora:
image: collabora/code:latest
container_name: collabora
environment:
- aliasgroup1=https://cloud.mydomain.tld:443,https://cloud\\.mydomain\\.tld:443 # enable for aliasgroup1
# - aliasgroup2=https://cloud.otherdomain.tld:443,https://cloud\\.otherdomain\\.tld:443 # enable for aliasgroup2
# - aliasgroup3=https://cloud.somedomain.tld:443,https://cloud\\.somedomain\\.tld:443 # enable for aliasgroup3
- username=admin
- password=******** # Replace with a strong password
- dictionaries=en_GB en_US de_DE
- extra_params=
--o:ssl.enable=false
--o:ssl.termination=true
--o:logging.level=warning
--o:user_interface.mode=compact
ports:
- "9980:9980"
restart: always
Tip
- extra_params=--o:ssl.enable=false --o:ssl.termination=true disabling ssl in coolsweed/collabora and forwarding http in reverse proxy handling ssl termination.
- aliasgroup iterating 1,2,3 for multiple domains. IMPORTANT: be aware of formatting conventions using \\ as separator before .
- dictionaries add dictionaries space seperated en_US en_GB de_DE etc.
WOPI is not necessary when defining aliasgroups as allowed hosts
Each aliasgroup represents the allowed "client" domain, which will prevent unregistered clients from accessing the CODE server. Thus using aliasgroups resolves the issue of allowed WOPI client IP's.
- aliasgroup1=https://cloud.mydomain.tld:443,https://cloud\\.mydomain\\.tld:443
- aliasgroup2=https://cloud.otherdomain.tld:443,https://cloud\\.otherdomain\\.tld:443
- aliasgroup3=https://cloud.somedomain.tld:443,https://cloud\\.somedomain\\.tld:443
-extra_params=
--o:ssl.enable=false disable ssl termination in coolswd/collabora
--o:ssl.termination=true forwarding http to reverse proxy handling ssl termination
--o:mount_jail_tree=true
--o:home_mode.enable=true
--o:logging.level_startup=warning
--o:logging.disable_server_audit=true
- dictionaries=en_GB en_US de_DE
https://office.mydomain.xyz/browser/dist/admin/admin.html
Be aware that you are forwarding http and Websockets support (WSS) only!

Nextcloud snap Wiki, use all information and scripts at own risk
- HTTP/HTTPS port configuration
- PHP configuration options
- Hosts & FQDN configuration
- Reverse proxy configuration
- CODE & Nextcloud Office configuration
- HPB client-push configuration
- Managing Nextcloud snap
- Managing automatic updates
- Managing automatic update issues
- Managing external media and storage
- Managing logs
- Managing services
- Managing cron
- Managing HTTP encryption
- OCC management console