I have installed nextcloud on docker and using cloudflare tunnels to put on a domain.
Cloudflare tunnels seems to be setup properly as It is pointing properly, connector is working fine too.
Yes it is loading properly on local address.
Here is my docker-compose:
ersion: "3" services: nextcloud: image: nextcloud:latest restart: unless-stopped ports: - 8000:80 environment: - MYSQL_HOST=xxx - MYSQL_DATABASE=xxx - MYSQL_USER=xxx - MYSQL_PASSWORD=xxx volumes: - nextcloud:/var/www/html mysql: image: mysql:8.0 restart: unless-stopped environment: - MYSQL_DATABASE=xxx - MYSQL_USER=xxx - MYSQL_PASSWORD=xxx - MYSQL_ROOT_PASSWORD=xxx volumes: - mysql:/var/lib/mysql volumes: mysql: nextcloud: ~
sudo docker port container:
80/tcp -> 0.0.0.0:8000 80/tcp -> :::8000
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES xxx nextcloud:latest "/entrypoint.sh apac…" 14 hours ago Up 13 hours 0.0.0.0:8000->80/tcp, :::8000->80/tcp xxx xxx mysql:8.0 "docker-entrypoint.s…" 14 hours ago Up 14 hours 3306/tcp, 33060/tcp xxx xxx cloudflare/cloudflared:latest "cloudflared --no-au…" 14 hours ago Up 14 hours xxx xxx cloudflare/cloudflared:latest "cloudflared --no-au…" 20 hours ago Up 20 hours xxx xxx vaultwarden/server:latest "/usr/bin/dumb-init …" 42 hours ago Up 21 hours (healthy) 3012/tcp, 0.0.0.0:59847->80/tcp, :::59847->80/tcp xxx xxx caddy:2 "caddy run --config …" 2 days ago Up 21 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 443/udp, 2019/tcp xxx
UFW rules are set and ports mentioned in docker-compose are allowed on host and docker.
Do i need to setup caddy for nextcloud too, i have for vaultwarden already.
Cant figure out what I am doing wrong!
I have found the solution did all setup from scratch now its working through n through.