global: checkNewVersion: true sendAnonymousUsage: false serversTransport: insecureSkipVerify: true entryPoints: # Not used in apps, but redirect everything from HTTP to HTTPS http: address: :80 http: redirections: entryPoint: to: https scheme: https # HTTPS endpoint, with domain wildcard https: address: :443 http: tls: # Generate a wildcard domain certificate certResolver: letsencrypt domains: - main: aknlw.com sans: - '*.aknlw.com' middlewares: - securityHeaders@file providers: providersThrottleDuration: 2 # File provider for connecting things that are outside of docker / defining middleware file: filename: /etc/traefik/fileConfig.yml watch: true # Docker provider for connecting all apps that are inside of the docker network docker: watch: true network: docker_default # Add Your Docker Network Name Here # Default host rule to containername.domain.example defaultRule: "Host(`{{ index .Labels \"com.docker.compose.service\"}}.aknlw.com`)" swarmModeRefreshSeconds: 15 exposedByDefault: false redis: endpoints: - 192.168.1.30:6379 # Enable traefik ui api: dashboard: true insecure: true # Log level INFO|DEBUG|ERROR log: level: DEBUG # Use letsencrypt to generate ssl serficiates certificatesResolvers: letsencrypt: acme: caServer: https://acme-staging-v02.api.letsencrypt.org/directory email: akanealw@gmail.com storage: /etc/traefik/acme.json dnsChallenge: provider: digitalocean delayBeforeCheck: 0 # Used to make sure the dns challenge is propagated to the rights dns servers resolvers: - "8.8.8.8:53" - "8.8.4.4:53"