Hi.
I’m trying to configure a Nextcloud stack using Docker Compose with Nextcloud and Collabora, running on local server 10.10.2.2.
I’m also running an Nginx Proxy Manager as a reverse proxy on local server 10.10.2.4.
Nextcloud is up and running, but I’m getting a “502 Bad Gateway” message from my reverse proxy when I try to connect to office.mydomain.com.
If I try connecting directly to the IP, I get a “Unable to connect” message.
And of course because of this, Nextcloud can’t connect to the Collabora address either.
This is my proxy configuration:
So I’m hoping someone can maybe test the setup I’m trying and come up with configuration ideas on how I can make it work.
I’m pretty sure the problem is isolated to Collabora and/or proxy configuration, since Nextcloud in itself seems to be working fine.
This is the docker-compose.yml I’m starting the containers with:
version: '3'
services:
nextcloud:
image: linuxserver/nextcloud:latest
container_name: nextcloud-cloud
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Copenhagen
volumes:
- /mnt/docker-data/nextcloud/nextcloud-data:/config
- /mnt/zfs/postern/nextcloud:/data
ports:
- 8775:443
restart: unless-stopped
collabora:
image: collabora/code:latest
container_name: nextcloud-office
cap_add:
- MKNOD
environment:
- domain=cloud\\.mydomain\\.com
- server_name=office.mydomain.com
- dictionaries=en_GB en_US da_DK
ports:
- 127.0.0.1:8780:9980
restart: unless-stopped
depends_on:
- nextcloud
I was actually trying to start the container with the environment variable DONT_GEN_SSL_CERT
(because I’m running my own reverse proxy), but I couldn’t get this to work initially. So any tips on running without generating certificates would be much appreciated too.
The Docker log for the Collabora container is here.