I have the following configuration (all based on examples I saw in the documentation, but the route and service doesn't show up in the dashboard - and the letsencrypt workflow doesn't initiate:
docker-compose:
version: "3"
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.2
container_name: traefik
restart: unless-stopped
ports:
# The HTTP port
- "80:80"
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
environment:
- GODADDY_API_KEY=XXXX
- GODADDY_API_SECRET=XXXX
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- /media/winshare/traefik/letsencrypt:/letsencrypt
- /media/winshare/traefik/traefik.toml:/etc/traefik/traefik.toml
traefik.toml:
# Enables dashboard.
[api]
insecure = true
dashboard = true
[file]
watch = true
# Acme configuration.
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[entryPoints.websecure.http.tls]
certResolver = "letsencrypt"
[certificatesResolvers.letsencrypt.acme]
email = "me.example@rizing.com"
storage = "acme.json"
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
[certificatesResolvers.letsencrypt.acme.tlsChallenge]
# App 1
[http.routers]
[http.routers.docs]
rule = "Host(`docs.example.io`)"
service = "docs-service"
entrypoints="websecure"
[http.routers.docs.tls]
certResolver = "letsencrypt"
[http.services]
[[http.services.docs-service.loadBalancer.servers]]
url = "http://99.99.99.99:80"
Result:
My 1 route http.routers.docs (docs.example.com)
doesn't show up in the dashboard and doesn't initiate an acme cert:
Any help would be greatly appreciated.
Thanks!