Docker version: 24.0.7
Operating system and version: Debian 11 (bullseye)
Caddy version: v2.7.5
The issue you are facing:
Hi, i’m trying to install nextcloud AIO with docker on my server which have already Caddy installed which already serve static sites.
i’m following this doc : https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
But i probably missing something
so i set the caddy config :
https://nextcloud.urso.fr:443 {
reverse_proxy localhost:11000
}
Then lauching to command :
# For Linux:
sudo 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 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
then i’ve got this messsage :
But when i open https://nextcloud.urso.fr, i have http 502 response :
if i open https://nextcloud.urso.fr:8443/, browser loading until timeout.
no more logs coming in container.
- DNS are well configured
- i restart caddy after every change
- i disabled all firewall rules.
- i tryed to change
APACHE_IP_BINDING
to127.0.0.1
- the ports seems free
sudo ss -tulwn | grep LISTEN
tcp LISTEN 0 4096 0.0.0.0:8080 0.0.0.0:*
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
tcp LISTEN 0 4096 127.0.0.1:2019 0.0.0.0:*
tcp LISTEN 0 4096 [::]:8080 [::]:*
tcp LISTEN 0 4096 *:80 *:*
tcp LISTEN 0 128 [::]:22 [::]:*
tcp LISTEN 0 4096 *:443 *:*
i tried to change caddy config to:
https://nextcloud.urso.fr:443 {
reverse_proxy localhost:8080
}
i got this errors :
My full Caddyfile:
(common) {
header /* {
-Server
}
}
https://nextcloud.urso.fr:443 {
reverse_proxy localhost:11000
}
gautier.urso.fr {
#@notFound `{err.status_code} == 404`
#rewrite @notFound /home/gitlab-runner/gurso/index.html
root * /home/gitlab-runner/gurso/
encode gzip
try_files {path} /index.html
file_server
header Cache-Control max-age=31536000
header /index.html Cache-Control max-age=60
import common
}
delphine.urso.fr {
root * /home/gitlab-runner/gb-app/
file_server
encode gzip
}
institut-vahine-minceur.com {
root * /home/gitlab-runner/vm/
file_server
encode gzip
}
i don’t know what i miss. i feel it’s caddy problem but i don’t know what to do, any help is welcome.
Thx by advance