I am running OMV (openmediavault v7.0) as a NAS and my Docker host.
I am trying to bring up a Traefik instance in a Docker container (non-swarm) using a macvlan network.
Compose works all the way through but docker container returns error.
I am stumped as to why it does not find a port.
2024-05-29T19:07:12-04:00 ERR error="service \"traefik-traefik\" error: port is missing" container=traefik-traefik-6fea6c225a0165f817bdb57c9cdc5d3a700fb234c3699e54a7243961e2bc3749 providerName=docker
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
# file:
# filename: /config.yml
certificatesResolvers:
cloudflare:
acme:
email: realworlddevs@outlook.com
storage: acme.json
# caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
You don’t need X-Forwarded-Proto as that is set automatically by Traefik.
You don’t need tls=true when using a certresolver. It’s only needed for custom loaded TLS certs.
I would usually mount static config to /etc/traefik/traefik.yml, not into root. But as the error is about providers.docker, I would assume it is still read.
I have strip down the compose trying to isolate the issue. What I found was traefik.http.routers.traefik.entrypoints is the line causing the lost ports.
if I do not configure entry points, the container stays up... your thoughts?
I can get the dashboard to display
I am loading with no errors (including Traefik Debug Log)
I am getting a cert back from the staging url
I cannot get the prompt to log in for the dashboard.
I cannot get any of https urls to work.