Hello,
We've been discussing how to set up a load balancer for multiple identical containers. You can find the discussion thread here: link.
Now, I'm interested in adding a health check to the path /
. If it returns a 200 status code, it indicates that the service is healthy.
frontend1:
labels:
- traefik.enable=true
- traefik.http.routers.frontendsite.rule=Host(`foobar.com`) || Host(`www.foobar.com`)
- traefik.http.services.frontendsite.loadbalancer.server.port=3001
- traefik.docker.network=supabase
frontend2:
labels:
- traefik.enable=true
- traefik.http.services.frontendsite.loadbalancer.server.port=3001
- traefik.docker.network=supabase
I find the documentation on this topic a bit unclear. Do I need to add health check tags to all containers, or is it enough to add them to the main container?
Thank you.