lucaslorentz / caddy-docker-proxy

Caddy as a reverse proxy for Docker
MIT License
3.06k stars 174 forks source link

Run server NOT in docker? (but controller in docker) #616

Open hongkongkiwi opened 6 months ago

hongkongkiwi commented 6 months ago

I've got a use case where caddy is currently running on a router (not in a docker) and I have another server which has all the docker containers.

I'd like to run this plugin in controller mode on the machine with all the containers and send the configs to the caddy running in server mode.

The only problem is I can't see a way to specify the server ip in a environment variable, it seems it's only supported if you add a label to the server docker (but in my case the server isn't running in a docker).

Any chance to add a variable do I can specify the server to send configs to?

Musrha commented 6 months ago

I'm also interested in this! Server caddy in a Proxmox LXC and controller container in my docker stack.