Connection refused when accessing container using curl

When I use curl -v http://host1 from my traefik container it says connection refused.
Happens when I stop start machine. After a while it's ok.
Below is some of my docker-compose code:

services:
traefik:
image: traefik:2.4
container_name: traefik
command:
- --providers.docker
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --entrypoints.web.http.redirections.entryPoint.to=websecure
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true
- --certificatesResolvers.le.acme.email=myemail@gmail.com
- --certificatesResolvers.le.acme.storage=/acme.json
- --certificatesResolvers.le.acme.tlschallenge=true
# - --log.level=debug
host1:
......
labels:
- "traefik.http.routers.host1.rule=Host(mydomain.com)"
- "traefik.http.routers.host1.tls=true"
- "traefik.http.routers.host1.tls.certresolver=le"
- "traefik.port=80"
- "traefik.enable=true"