"Intermittent Service Connectivity Issues with Traefik

I encountered an issue with Traefik. I connected a service to it and specified all the necessary data for Traefik through labels. Everything is running in my Docker Compose setup using Docker socket. The problem is that for some reason, Traefik is not working correctly with my service. The issue manifests as follows:

When I start everything up, after a while (about 20-30 seconds), Traefik begins making requests to the service and starts throwing errors like this:

Health check failed. error="HTTP request failed: Get \"http://172.18.0.2:8010/health\": context deadline exceeded" serviceName=content-service@docker targetURL=http://172.18.0.2:8010

After 20-30 seconds, everything starts working correctly, and I can make requests to the service through Traefik without any issues. However, after another 20-30 seconds, it breaks again, and this cycle repeats continuously.

For your information, I am using Docker Desktop. The service was developed in Go (Echo).

Share your full Traefik static and dynamic config, and docker-compose.yml if used.