I'm trying to get traefik to generate certs using the HTTP challenge, but when I run my traefik service, it seems to be stuck on this step:
traefik | time="2024-01-18T00:22:20Z" level=info msg="Testing certificate renew..." providerName=resolver.acme ACME CA="https://acme-staging-v02.api.letsencrypt.org/directory"
I'm not entirely sure what I am missing. Did I forget a route somewhere?
This is docker-compose_traefik.yml
, that I use to run the traefik service:
version: "3.7"
services:
traefik:
image: "traefik:v2.10"
container_name: "traefik"
hostname: "traefik"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik.yml:/traefik.yml:ro"
- "/letsencrypt/acme.json:/letsencrypt/acme.json"
networks:
default:
external:
name: purldb
This is traefik.yml
:
## STATIC CONFIGURATION
log:
level: INFO
api:
insecure: false
dashboard: false
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
certificatesResolvers:
resolver:
acme:
caServer: https://acme-staging-v02.api.letsencrypt.org/directory
email: infra@nexb.com
storage: /letsencrypt/acme.json
httpChallenge:
# used during the challenge
entryPoint: web
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false