"port is missing"

I have that. When I run as it, I get 404 Not Found.

I tried using this config:

[log]
level = "INFO"

[entryPoints]
[entryPoints.web]
address = ":80"

[api]
insecure = true

[providers.docker]
endpoint = "unix:///var/run/docker.sock"
exposedByDefault = false

and adding these labels to my_custom_image:


    labels:
      - "traefik.enable=true"
      - "traefik.http.services.my_custom_image.loadbalancer.server.port=8080"
      - "traefik.http.routers.my_custom_image.entrypoints=web"
      - "traefik.http.routers.my_custom_image.rule=Host(`my_custom_image.whatever.localhost`)"

and with this config I get Bad Gateway