I'm trying to run a traefik image in docker compose, and it was working before, but since I pulled the images, the only log I get from docker compose logs traefik
is command traefik error: field not found, node: [0]
.
I tried to downgrade the image on all 2.10 versions (it's currently in 2.10.5) but no change.
I don't understand what this error means, I double checked my conf files and I can see no error, as I haven't changed a single thing since last time I ran the image.
My files:
#docker-compose.yml
version: '3.7'
services:
traefik:
image: traefik:2.10
container_name: traefik
ports:
- 80:80
- 443:443
environment:
- "TZ=Europe/Paris"
- "OVH_ENDPOINT_FILE=/run/secrets/ovh_endpoint"
- "OVH_APPLICATION_KEY_FILE=/run/secrets/ovh_application_key"
- "OVH_APPLICATION_SECRET_FILE=/run/secrets/ovh_application_secret"
- "OVH_CONSUMER_KEY_FILE=/run/secrets/ovh_consumer_key"
secrets:
- ovh_endpoint
- ovh_application_key
- ovh_application_secret
- ovh_consumer_key
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- ./traefik-config/:/etc/traefik/config/:ro
- ./logs:/var/log/traefik
- traefik_ssl:/letsencrypt
networks:
- traefik
restart: unless-stopped
# ... other services that are all running ...
secrets:
ovh_endpoint:
file: "./secrets/ovh_endpoint.secret"
ovh_application_key:
file: "./secrets/ovh_application_key.secret"
ovh_application_secret:
file: "./secrets/ovh_application_secret.secret"
ovh_consumer_key:
file: "./secrets/ovh_consumer_key.secret"
volumes:
traefik_ssl:
name: traefik_ssl
networks:
traefik:
name: traefik
# traefik.yml
global:
checkNewVersion: true
sendAnonymousUsage: true
entryPoints:
http:
address: :80
http:
redirections:
entryPoint:
- to: https
- scheme: https
- permanent: true
https:
address: :443
api:
dashboard: false
providers:
docker:
exposedByDefault: false
file:
directory: /etc/traefik/config/
watch: true
debugLogGeneratedTemplate: true
certificatesResolvers:
mydnschallenge:
acme:
email: "email@email.com"
storage: "/letsencrypt/acme.json"
dnsChallenge:
provider: ovh
delayBeforeCheck: 10
log:
# DEBUG, INFO, WARNING, ERROR, CRITICAL
level: DEBUG
filePath: /var/log/traefik/traefik.log
# common, json
format: json
accessLog:
filePath: /var/log/traefik/access.log
# common, json
format: json
# middlewares.yml
http:
middlewares:
secHeaders:
headers:
forceSTSHeader: true
stsIncludeSubdomains: false
stsSeconds: 31536000
frameDeny: true
contentTypeNosniff: true
browserXssFilter: true
# tls.yml
tls:
options:
default:
minVersion: VersionTLS12
sniStrict: true