Hi,
I am trying to set up Nextcloud server on docker on an Ubuntu 24.04 host.
As I will be running some other docker containers (like vaultwarden, pihole, ā¦), I thought it would be a good idea to run Caddy as reverse proxy.
The host is running tailscale.
I am obviously running into some problems (otherwise not posting here). Thanks a lot in advance to take a look at my config and help me out.
I read all-in-one/reverse-proxy.md at main Ā· nextcloud/all-in-one Ā· GitHub and even tried some AI bot to help me out, but so far no success.
My initial goal was to create two separate .yml files for caddy and nc, I have since merged this into a single one:
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
Here is my Caddyfile
:
# Nextcloud on local LAN and Tailscale IP
10.7.8.15 {
reverse_proxy nextcloud:11000
tls internal
}
100.YY.YY.YY {
reverse_proxy abc.taile15def.ts.net:11000
tls internal
}
I can get to the the AIO web interface at https://10.7.8.15:8080
and at the tailescale domain name, but I not sure what domain to provide next. I have have tried various local network names as well as the tailescale domain name without success.
Domain does not point to this server or the reverse proxy is not configured correctly. See the mastercontainer logs for more details. (āsudo docker logs -f nextcloud-aio-mastercontainerā),
logs
NOTICE: PHP message: The response of the connection attempt to "https://abc.taile15def.ts.net:443" was:
NOTICE: PHP message: Expected was: 69202ae7e37afddb139a7c2cf61dbadbd61645270c46b583
NOTICE: PHP message: The error message was: TLS connect error: error:0A000438:SSL routines::tlsv1 alert internal error
NOTICE: PHP message: Please follow https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#6-how-to-debug-things in order to debug things!
Any hints or ideas how to proceed would be very much appreciated?