Unverified Commit f6b301a5 authored by Tom Moulard's avatar Tom Moulard
Browse files

traefik: simplifying the config file

parent 14ca9a9c
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -6,7 +6,20 @@ networks:
services:
  traefik:
    image: traefik:1.7.11
    command: --api --api.statistics --docker
    command: >
     --api
     --api.statistics
     --docker
     --docker.watch
     --docker.exposedbydefault=false
     --acme
     --acme.email=${EMAIL}
     --acme.storage="acme.json"
     --acme.entryPoint:https
     --acme.httpChallenge.entryPoint=http
     --acme.onhostrule=true
     --acme.acmelogging=true
     --loglevel=INFO
    restart: always
    ports:
      - '80:80'
+2 −13
Original line number Diff line number Diff line
logLevel = "DEBUG"
defaultEntryPoints = ["http", "https"]

[traefikLog]
@@ -16,10 +15,12 @@ defaultEntryPoints = ["http", "https"]
[entryPoints]
  [entryPoints.http]
    address = ":80"
    compress = true
      [entryPoints.http.redirect]
        entryPoint = "https"
  [entryPoints.https]
    address = ":443"
    compress = true
      [entryPoints.https.tls]

# API definition
@@ -28,15 +29,3 @@ entryPoint = "traefik"
dashboard = true
  [api.statistics]
    recentErrors = 42

[acme]
email = "tom@moulard.org"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
  [acme.httpChallenge]
  entryPoint = "http"

[docker]
watch = true
exposedByDefault = false
 No newline at end of file