I've got my docker/traefik set-up so I can reach the dashboard and api over port 80. Therefore entrypoint 'Traefik' on port 8080 becomes obsolete, how can I disable this entrypoint or prevent it from being created?
Why I also want this besides cleaning up and closing unnecessary ports: I haven't found the correct syntax to set the default entrypoints, currently these are ['web', 'websecure', 'traefik']
could you provide your static configuration?
traefik is created only when specific options are enabled (
In the v2, the default entrypoints are all entrypoints, you have to set explicitly the entrypoint on the router to reduce the scope.
I indeed have the api and ping enabled in the traefik.toml configuration:
# Enable API and dashboard
dashboard = true
insecure = false
# Name of the related entry point
# Default: "traefik"
# entryPoint = "traefik"
# Enable ping
Is it necessary to have this enabled in this manner when I'm instead using traefik itself to access it? I've included the docker-compose I'm using:
- "traefik.http.routers.traefik.rule=Host(`traefik.mydomain.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
traefik entrypoint is created due to
You can chnage the ping entry point: https://docs.traefik.io/v2.0/operations/ping/#entrypoint
Thank you, changing the entrypoint for the [ping] did indeed solve this issue.
Would there be any negative consequences when setting the web and websecure as entrypoints for the [ping] functionallity?