That’s a pretty old version. Please upgrade to v2.6.2.
That command is only meant to be used for quick local development. You shouldn’t use it in production.
You’ll need to elaborate. I’m not sure I understand your goal here. Just saying “zero downtime” is not clear enough.
Then why not use that Caddy to proxy whatever?
Do not remove any parts of the help topic template. It’s there for a reason. It’s a forum rule to completely fill it out. We need as much information as possible about your setup and what you’re trying to achieve to be able to help.
I’ve a running caddy server bind to 80/443.
The server is doing many reverse proxy over docker container.
The problem I’m facing is that during deployment I’ve to shutdown the container before updating it and then restart it.
I’m looking for a solution to update caddy config dynamicaly to switch the reverse proxy:
Example : Let’s say I’ve a running container named example-1, and caddy which reverse https://example.com to example-1:9000.
I’d like to deploy example-2, and when fully deployed update caddy to reverse proxy https//example.com to example-2:9000, and then shutdown example 1.
I know I can achieve such behavior by manipulating caddy files with sh scripts, but I was wondering and there was some magical stuff in caddy I don’t know about which can help me.