1. The problem I’m having:
I currently running docker compose with traefik and labels. I saw that there is also an option to use labels with caddy.
For my docker compose I am planning to use rolling updates.
=> Docker is running
=> New Docker container is creating, while the container is build and not “healthy”, Caddy should send the traffic to the old container.
=> Once the new container is up and “healthy”, Caddy should send the traffic to this container.
=> Old container will be stopped and deleted.
Can I also build this kind of rolling updates with Caddy? If yes, do you have a example docker-compose / example config file for that use case?
a. System environment:
Yeah, you’re looking for GitHub - caddyserver/caddy-docker: Source for the official Caddy v2 Docker Image
I don’t think you need to do anything special for that to work, Caddy’s config will be reloaded as you add and remove containers. It’s up to you to manage the containers though.
I am a little bit confused.
In the meanwhile I was adding this project:
Is this project something complete different? (FORK or why does this exist?)
Oops, yes, that’s the link I meant to paste but my browser autocomplete didn’t give me what I wanted and I didn’t even read what I pasted
CDP is what you should use if you want to use labels, yes.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.