Traefik was working fine two weeks ago and now i get 'DNS PROBE POSSIBLE' when trying to load dashboard.
Rebuilt container = no change
Container shows running and i can ping 172.18.0.2 from my machine and within docker.
I only have pihole running as another container on same machine and do have a local DNS record
traefik-dashboard-internal.local..com to 172.18.0.2
I cannot resolve this from my machine or within my server. I see that from my traefik container, i'm unable to reach pihole and think this is the problem (although unsure why my local DNS record configured is not working). I have also rebuilt pihole and using it as my DNS fine.
I tried adding in a route via:
sudo docker exec traefik ip route add 172.16.0.0/24 via 172.18.0.1
but get 'ip: RTNETLINK answers: Operation not permitted'
docker-compose.yml
version: '3'
services:
traefik:
image: traefik:latest
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
ports:
- 80:80
- 443:443
environment:
- CF_API_EMAIL=***
- CF_DNS_API_TOKEN=***
# - CF_API_KEY=YOU_API_KEY
# be sure to use the correct one depending on if you are using a token or key
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/traefik/data/traefik.yml:/traefik.yml:ro
- /mnt/traefik/data/acme.json:/acme.json
- /mnt/traefik/data/config.yml:/config.yml:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`traefik-dashboard-internal.local.***.com`)"
- "traefik.http.middlewares.traefik-auth.basicauth.users=admin:$$apr1$$8fbdqs9r$$8SI9LULyBJWXv.BmSXNQq0"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik-dashboard-internal.local.***.com`)"
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certresolver=cloudflare"
- "traefik.http.routers.traefik-secure.tls.domains[0].main=local.***.com"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.local.***.com"
- "traefik.http.routers.traefik-secure.service=api@internal"
networks:
proxy:
external: true
traefik.yml
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: ***
storage: acme.json
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.
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
I have my wildcard populating in 'acme.json' file each time i rebuild trying to fix this. Looks to be just internal DNS resolution? any other way i can put a route inside the traefik container?