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?
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.