reduce time traefik takes for docker service discovery

I’m trying to reduce the time traefik takes to register my docker service. Almost immediately after bringing the service up I can query the service's healthcheck endpoint directly with: http://localhost:4533/ping However, it takes about 30 seconds for the service to register and show up in my traefik dashboard. This means that I have to wait about 30 seconds after bringing up the service to access it via the traefik reverse proxy. Anyone know of a config item traefik uses for its service discovery? I've tried looking through the traefik docs online but haven't found anything.

Whereas providers.swarm is using polling, providers.docker is listening for Docker events (doc), so it should work immediately. If it takes longer, maybe TLS certs are created first or there may be waiting for healthcheck or depends_on.

Does the container have an healthcheck? While the container health is still "starting", Traefik ignores it (as bluepuma77 said, waiting for healthcheck). Traefik starts routing when the container is healthy.