I want to setup Nextcloud locally, not exposed to the internet!
I can’t get past domain verification. Either i get that port 443 is not open or that reverse proxy is not configured correctly.
The server is ubuntu 22.04, with docker 24.0.2.
The server is behind NAT with public static ipv4. I use duckdns.org to get a domain.
The all-in-one/local-instance.md at main · nextcloud/all-in-one · GitHub doc is ambiguous to me. Like step 2 where port 80 should only be opened? The domain check seems to want only 443…
Please help!
I did try setting the env SKIP_DOMAIN_VALIDATION=true but the ui is not working (can’t click anything)
This is my docker-compose.yml:
version: "3.8"
services:
caddy:
image: caddy:alpine
restart: unless-stopped
container_name: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/certs
- ./config:/config
- ./data:/data
- ./sites:/srv
network_mode: "host"
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
ports:
- "8080:8080"
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=127.0.0.1
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- caddy
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
The Caddyfile:
[mysub].duckdns.org {
reverse_proxy localhost:11000
}