1. Caddy version (caddy version
):
Caddy 2.2.1
2. How I run Caddy:
Docker Container
a. System environment:
OMV5
Debian Buster
Docker
Portainer
c. Service/unit/compose file:
Docker
d. My complete Caddyfile or JSON config:
requests.movies4you.digital {
encode gzip
log {
output file /var/log/ombi_access.log {
roll_size 1gb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:3579 {
}
tls email here {
dns cloudflare API-KEY
}
}
accounts.movies4you.digital {
encode gzip
log {
output file /var/log/accounts_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:8056 {
}
tls email here {
dns cloudflare API-KEY
}
}
stream.movies4you.digital {
encode gzip
log {
output file /var/log/jf_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:8096 {
}
tls email here {
dns cloudflare API-KEY
}
}
lidarr.movies4you.digital {
encode gzip
log {
output file /var/log/lidarr_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:8686 {
}
tls email here {
dns cloudflare API-KEY
}
}
sonarr.movies4you.digital {
encode gzip
log {
output file /var/log/sonarr_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:8989 {
}
tls email here {
dns cloudflare API-KEY
}
}
radarr.movies4you.digital {
encode gzip
log {
output file /var/log/radarr_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:7878 {
}
tls email here email here {
dns cloudflare API-KEY
}
}
comics.movies4you.digital {
encode gzip
log {
output file /var/log/radarr_access.log {
roll_size 50mb
roll_keep 5
roll_keep_for 720h
}
}
reverse_proxy /* localhost:8090 {
}
tls email here {
dns cloudflare API-KEY
}
}
3. The problem I’m having:
I actually have a couple of questions. Whats the difference in using a docker proxy with cloudflare here: Docker Hub compared to just using a docker hub with a cloudflare plugin built on docker hubs abiosoft caddy rep here: Docker Hub
does the docker proxy with cloudflare allow me access to all the containers where the docker hub caddy with cloudflare allow me to not access those containers?
Also could someone poiny me in the general direction for a good setup for docker + cloudflare + caddy2+ docker proxy (if needed)
Can someone possibly give me an in depth tutorial. I couldnt find much either than what was on Docker Hub
4. Error messages and/or full log output:
Cant get it to run the certs through. No 80 and 443 are both open as well as firewall on Router and OS are correctly opened. My ISP is also not blocking the ports. I cant get a cert to process. It loads but wont process. Im assuming because of outdated docker hub dockerfiles. Thank you ahead of time.
5. What I already tried:
I’ve have already tried countless different docker hub dockerfiles and setups. I only got one to write a cert but it didnt work with cloudflare. Soo…
6. Links to relevant resources:
https://registry.hub.docker.com/r/abiosoft/caddy
https://hub.docker.com/r/sabrsorensen/caddy-docker-proxy-cloudflare