Hi there,
I am completely new to Nextcloud an Cloudflare but managed to install Nextcloud within docker, using the Nextcloud installation instructions for a reverse proxy setup., meticulously. Only difference is: I am using the macvlan network architecture in docker. So every container receives (should receive) its own dedicated IP.
Now I am running in to an 502 bad gateway error. These are my logs
nextcloud-aio-nextcloud Container:
Activating Collabora config…
An unhandled exception has been thrown:
Error: Call to a member function xpath() on bool in /var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php:51
Stack trace:
#0 /var/www/html/custom_apps …
cloudflare tunnel container:
2023-09-18T06:31:54Z ERR Request failed error=„Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp <IP-of-nextcloud-master-container>:11000: connect: connection refused“ connIndex=1 dest=https://<my-sub-and-tld>/hosting/capabilities event=0 ip=<probably-my-IP> type=http
All the other containers seem to be fine (master, collabora, database, redis, imaginary, notify-push, apache).
My docker-compose looks like this:
version: ‚3‘
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
#- 80:80
- 8080:8080
#- 8443:8443
environment:
- APACHE_PORT=11000
#- APACHE_IP_BINDING= // I tried activating this, tried with localhost, 127.0.0.1, 0.0.0.0, IP of cloudflare container, IP of nextcloud master container. All with no luck.
- SKIP_DOMAIN_VALIDATION=true
- NEXTCLOUD_DATADIR=/volume1/docker/nextcloud/data
networks:
default:
ipv4_address: <ip-of-nextcloud>
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
networks:
default:
name: eth_macvlan
external: true
The hostname settings within cloudflare for my sub- and tld are http.
I tried https with enabling no TLS verification but withouth luck.
My concern is that I am using macvlan structure and all those created containers cant talk to each other since they are not running on localhost.
What else can I check or try out?