Hello wonderful people,
I am trying to install Collabora Code via Docker Compose. I wish to bring coolwsd.xml out to the host directory for easy editing. However, I am unable to write a proper docker compose file for the said purpose. Here are few examples that I am trying with no luck,
Example 1
trying to mount as single file.
services:
collabora:
image: collabora/code
container_name: collabora
ports:
- "9980:9980"
restart: unless-stopped
volumes:
- ./coolwsd.xml:/etc/coolwsd/coolwsd.xml
environment:
- domain=office.mydomain.online
- username=User
- password=Password
- dictionaries=en_US
- TZ=Asia/Kolkata
I have tried to start the container with or without any pre existing blank coolwsd.xml file in the directory. But no luck in both cases.
Example 2
Trying to mount the entire directory,
services:
collabora:
image: collabora/code
container_name: collabora
ports:
- "9980:9980"
restart: unless-stopped
volumes:
- ./config:/etc/coolwsd/
environment:
- domain=office.mydomain.online
- username=Username
- password=Password
- dictionaries=en_US
- TZ=Asia/Kolkata
Its not working in both cases…
Service is deploying without any issue if I just remove the “volumes” parameters out of this example. But in that case, I am finding it very hard to go inside the container for any editing.
It would be helpful for me if someone can help me write a proper docker compose file
Thanks.