--- log: level: {{ env "LOG_LEVEL" }} providers: docker: endpoint: "unix:///var/run/docker.sock" exposedByDefault: false network: proxy swarmMode: true {{ if eq (env "FILE_PROVIDER_ENABLED") "1" }} file: filename: /etc/traefik/file-provider.yml {{ end }} api: dashboard: {{ env "DASHBOARD_ENABLED" }} debug: false entrypoints: web: address: ":80" http: redirections: entryPoint: to: web-secure web-secure: address: ":443" gitea-ssh: address: ":2222" smtp-submission: address: ":587" ping: entryPoint: web certificatesResolvers: staging: acme: email: {{ env "LETSENCRYPT_EMAIL" }} storage: /etc/letsencrypt/staging-acme.json caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" httpChallenge: entryPoint: web production: acme: email: {{ env "LETSENCRYPT_EMAIL" }} storage: /etc/letsencrypt/production-acme.json httpChallenge: entryPoint: web