Closed czar-labs closed 6 months ago
Hello, I got it working with your method.
I have question, your method is using labels inside the containers, not using Caddyfile. How do you manage reverse proxy for other host? for example proxmox, or jellyfin that runs in baremetal that have dedicated IP Address?
Hi there, glad you got it working.
As you saw in my setup I have a wildcard DNS for my domain (*.mydomain.com
), i.e. my self-hosted Caddy instance is the default host for my domain. Then as my guide shows we can just specify any subdomains for each service using docker-compose.yml
files, and caddy-docker-proxy will reverse-proxy to that service. This is a nice and simple way to manage it.
But configuring the setup to route to a different host isn't straight-forward. I remember looking into it and decided it was more simple to just create a separate DNS entry in Cloudflare for any specific subdomain that I want routed to a different host. So accessing different-host.mydomain.com
will go to that other host, while any other subdomain will fall under the wildcard DNS entry that is managed by caddy-docker-proxy. I think this is a fairly simple workaround that is still manageable.
However, I would prefer to manage the entire setup in one same place with Caddy instead of having some parts outsourced to the Cloudflare dashboard. But as mentioned if I remember correctly it wasn't so straight-forward, or it might've not even have been possible. I don't remember if the limitation was with Caddy or due to the caddy-docker-proxy setup being used. Maybe this has changed since I last checked though, so please let me know if you figure something out.
Hello, first of all many thanks for the tutorial, it perfectly fits my condition where I would like to have reverse proxy without exposing the port.
I am a bit new to docker containers and I have followed your tutorial, without Tailscale docker since I already have it running. However, still it does not work for me. Could you please help?
Below are my configurations
1. Cloudflare API Token
2. Caddy Configuration
.env file
docker-compose.yml file
Dockerfile file ->did not change anything
3. Gitea Configuration
I expect I can access gitea from git.HIDDEN.my.id. But can't access it Many thanks for your support