Hey I tried multiple Nextcloud instances already and I am still wondering and learning.
I build the whole nextcloud from scratch. Then I found snapd and now I switched to docker desktop.
I can get/had everything running. The only reason I am still fiddeling around is I want to use subdomains.
Therefore I use caddy as reverse proxy. Right now I only play around with rejetto HFS and nextcloud.
For some Information the host is a Windows 10 machine and I installed Docker Desktop. Inside Docker Desktop Caddy is running and worked for HFS (also inside docker). However I am to stupid to get the nextcloud domain to work. I always get HTTP 502 ERROR.
The caddy file looks like this right now
https://nextcloud.trolo.ddnss.de:443 {
reverse_proxy localhost:11000
}
not right now added but was working:
https://hfs.trolo.ddnss.de:443 {
reverse_proxy <hfs internal docker container ip>:8080
}
This is the command I used to install Nextcloud AIO
docker run ^
--init ^
--sig-proxy=false ^
--name nextcloud-aio-mastercontainer ^
--restart always ^
--publish 8080:8080 ^
--env APACHE_PORT=11000 ^
--env APACHE_IP_BINDING=0.0.0.0 ^
--env APACHE_ADDITIONAL_NETWORK="" ^
--env SKIP_DOMAIN_VALIDATION=false ^
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config ^
--volume //var/run/docker.sock:/var/run/docker.sock:ro ^
-e NEXTCLOUD_DATADIR="/run/desktop/mnt/host/c/ssd/nextcloud" ^
nextcloud/all-in-one:latest
I am sure I am missing something very basic. Does anyone have an idea?
I also tried the internal ip adresses of the apache and nextcloud aio docker containers in the caddyfile. Nothing but 502 error