So for some reason my traefik just gave up and threw me a 526 error on all my services. I found this "old" guide that I followed maybe it is for v2... since I am running v3.
traefik:
image: traefik:latest
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- 80:80
- 443:443
#environment:
# - CF_API_EMAIL=${CFMAIL}
# - CF_DNS_API_TOKEN=${CFTOKEN}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./appdata/traefik/:/etc/traefik
- ./appdata/traefik/traefik.toml:/traefik.toml
- ./appdata/traefik/traefik_dynamic.toml:/traefik_dynamic.toml
- ./appdata/traefik/acme.json:/acme.json
networks:
- web
networks:
web:
external: true
name: web
Here is the traefik.toml
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[api]
dashboard = true
[certificatesResolvers.lets-encrypt.acme]
email = "an@mail.net"
storage = "acme.json"
[certificatesResolvers.lets-encrypt.acme.tlsChallenge]
[providers.docker]
watch = true
network = "web"
[providers.file]
filename = "traefik_dynamic.toml"
All I get is this: ERR Unable to obtain ACME certificate for domains error
What have I done wrong here?