A few months ago I setup traefik for local and external (with authentik middleware) access on some docker containers. Currently all services can be a accessed at XXXX.local.YYYY.com but about half of them don't work at XXXX.YYYY.com anymore, where I receive a "DNS_PROBE_FINISHED_NXDOMAIN" error. I managed to fix access one service by removing the authentik middleware label, recreating the container, restoring middleware, and recreating again, but it seems to a fluke. Below is the label template most of them use.
###########HOMEPAGE#####################
labels:
#####Settings
traefik.enable: true
traefik.http.routers.homepage-external.entrypoints: http
traefik.http.middlewares.homepage-external-https-redirect.redirectscheme.scheme: https
traefik.http.services.homepage-external.loadbalancer.server.port: 3000
####local
traefik.http.routers.homepage-external.rule: Host(`homepage-external.local.YYYYYYYYY.com`)
traefik.http.routers.homepage-external.middlewares: homepage-external-https-redirect,local-ipallowlist #redirect and local only
traefik.http.routers.homepage-external-secure.rule: Host(`homepage-external.local.YYYYYYYYY.com`)
traefik.http.routers.homepage-external-secure.middlewares: local-ipallowlist #In house only
traefik.http.routers.homepage-external-secure.entrypoints: https
traefik.http.routers.homepage-external-secure.tls: true
traefik.http.routers.homepage-external-secure.service: homepage-external
####remote
traefik.http.routers.homepage-external-remote.rule: Host(`YYYYYYYY.com`)
traefik.http.routers.homepage-external-remote.middlewares: authentik,homepage-external-https-redirect
traefik.http.routers.homepage-external-remote.entrypoints: https
traefik.http.routers.homepage-external-remote.tls: true
traefik.http.routers.homepage-external-remote.service: homepage-external
#############OVERSEER#######################
labels:
#Settings
traefik.enable: true
traefik.http.routers.overseerr.entrypoints: http
traefik.http.middlewares.overseerr-https-redirect.redirectscheme.scheme: https
traefik.http.services.overseerr.loadbalancer.server.port: 5055
#local
traefik.http.routers.overseerr.rule: Host(`overseerr.local.YYYYYYYYYY.com`)
traefik.http.routers.overseerr.middlewares: overseerr-https-redirect,local-ipallowlist #redirect and local only
traefik.http.routers.overseerr-secure.rule: Host(`overseerr.local.YYYYYYYY.com`)
traefik.http.routers.overseerr-secure.middlewares: local-ipallowlist #In house only
traefik.http.routers.overseerr-secure.entrypoints: https
traefik.http.routers.overseerr-secure.tls: true
traefik.http.routers.overseerr-secure.service: overseerr
#remote
traefik.http.routers.overseerr-remote.rule: Host(`overseerr.YYYYYYYY.com`)
traefik.http.routers.overseerr-remote.middlewares: authentik,overseerr-https-redirect
traefik.http.routers.overseerr-remote.entrypoints: https
traefik.http.routers.overseerr-remote.tls: true
traefik.http.routers.overseerr-remote.service: overseerr