docker
docker copied to clipboard
docker run -d -p 8080:80 nextcloud:23 with all default options but still getting a non working CODE server
Hi,
I run my own NextCloud instances on my local machine for testing and on my server. Unfortunately I can't manage to get collaborative editing. I noticed with the recent Hub II announcement that there is now NextCloud Office. I thought I would try again.
I ran the most simple example, namely docker run -d -p 8080:80 nextcloud:23
, connect to it via http://localhost:8080, create my admin login and accept the suggest services, which seems to include CODE. I let the process end and everything seems to work.
Unfortunately I can't edit rich documents and when I head to http://localhost:8080/settings/admin/richdocuments I get Could not establish connection to the Collabora Online server.
, cf below :
So at this point I'm a bit confused. When few months ago I tried the same setup with docker-compose I thought that maybe I missed something. Here though, as it seems to be all included and managed, I fail to see what I could have done wrong.
I checked the browser console, even tried another browser (but as it is server side I don't see how it could be related) and the container logs but can't see anything special, no error.
I noticed https://github.com/nextcloud/docker/issues/1164 but opened another issue as that seems related to another setup relying on compose.
Do these requirements from Collabora Online still apply?
- A subdomain or a second domain that the Collabora Online server can run on
- An Apache server with some enabled modules (NGINX instructions in a blog here)
- A valid SSL certificate for the domain that Collabora Online should run on
- A valid SSL certificate for your Nextcloud
Because if so then I imagine a default subdomain is being used. It also means without properly configuring the reverse proxy to provide certificates for 2 subdomains it will not work, despite the installation instruction not mentioning this.
I'd not recommend to run Collabora in the same container as Nextcloud. https://github.com/nextcloud/docker/pull/630 might be useful for you.
Thanks, I might try again. I specifically tried version 23 because of the integration / bundling because before, via compose, it also didn't work for me. Everything starts properly yet when it's time to use Collabora, unable to connect. I imagine there is some reverse proxy parameter I might miss. It's a shame that somehow default settings for this don't "just" work.
I see everywhere that you use a separate domain for collabora, but nobody explains why/if this is mandatory, as the collabora server is on another port anyways. Any clue?
I've left some comments what you need to do in order to get the built-in CODE server to run at https://github.com/nextcloud/docker/issues/1896#issuecomment-1558810330