In the previous post I had a look at how to get Euro-Office running in a Nextcloud AIO setup, which turned out to be straight forward, as the necessary Euro-Office Docker container and plug-in was already installed by a recent update. Thus, I only had to disable the plug-in for the previously used Onlyoffice to get it working. The next step: I have another Nextcloud setup that is based on a traditional setup without containers. This instance was so far connected to an Onlyoffice instance running on a different VM in a docker-compose setup with 3 separate containers for Onlyoffice, a Postgres database and Rabbitmq. My logic: Since Euro-Office is a straight fork so far, I might only have to change the image parameter from Onlyoffice to Euro-Office in my docker-compose.yml file to get my desired setup. Well, what are the chances that it would be that simple? Well, not good and of course it didn’t work at first. However, it made me discover that things can be made even more simple. A rare occurrence…
To see why it didn’t work I had a look at the logs of the Only-Office container. To my surprise, I saw that the container already includes Postgres and rabitmq. Thus, perhaps the other two containers are not required anymore? So I radically simplified my docker-compose.yml file to only start the Euro-Office image in a container and removed all the rest. Here’s how the much simplified docker-compose.yml file looks like:
services:
230-euro-office:
container_name: 230-euro-office
image: ghcr.io/euro-office/documentserver:latest
environment:
- JWT_SECRET=super-very-long-secret
labels:
caddy: euro-office.my-domain.de
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.log.output: stdout
stdin_open: true
restart: always
stop_grace_period: 60s
networks:
- caddy
networks:
caddy:
external: true
On the Nextcloud side I deactivated the Onlyoffice plugin and then wanted to install the Euro-Office plugin. However, I couldn’t find it in the software catalogue. Hm, perhaps I’m blind, but the Nextcloud documentation mentions that the plugin can also be installed on the server from the shell:
sudo -u www-data php occ app:install eurooffice
So that’s what I did and after copy/pasting the secret I set on the Euro-Office side in the docker-compose.yml file and generating a longer one in the process because I got an error message at first that the connection secret is too short, things started work. Wow, much simpler than my previous setup!
And there we go, a traditional Nextcloud setup with a very simple Euro-Office container running on a different server with a Caddy reverse proxy as a front end to the Euro-Office container.