Created
July 10, 2020 12:47
-
-
Save Dzmuh/597024f3559caab13cc9455a00d23a93 to your computer and use it in GitHub Desktop.
Revisions
-
Dzmuh created this gist
Jul 10, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,175 @@ ################################################################ # Global configuration ################################################################ global: checkNewVersion: true sendAnonymousUsage: true ################################################################ # Entrypoints configuration ################################################################ # Entrypoints definition # # Optional # Default: entryPoints: http: address: ":80" https: address: ":443" api: insecure: true ################################################################ # Traefik logs configuration ################################################################ # Traefik logs # Enabled by default and log to stdout # # Optional # log: # Log level # # Optional # Default: "ERROR" # level: "WARN" # Sets the filepath for the traefik log. If not specified, stdout will be used. # Intermediate directories are created if necessary. # # Optional # Default: os.Stdout # #filePath: "/var/log/traefik/traefik.log" # Format is either "json" or "common". # # Optional # Default: "common" # # format = "json" ################################################################ # Access logs configuration ################################################################ # Enable access logs # By default it will write to stdout and produce logs in the textual # Common Log Format (CLF), extended with additional fields. # # Optional # accessLog: # Sets the file path for the access log. If not specified, stdout will be used. # Intermediate directories are created if necessary. # # Optional # Default: os.Stdout # filePath: "os.Stdout" # Format is either "json" or "common". # # Optional # Default: "common" # # format = "json" ################################################################ # API and dashboard configuration ################################################################ # Enable API and dashboard api: insecure: true # Enabled Dashboard # # Optional # Default: true # dashboard: true ################################################################ # Ping configuration ################################################################ # Enable ping ping: {} ################################################################ # Providers configuration ################################################################ # # cf. https://docs.traefik.io/providers/docker/#provider-configuration providers: providersThrottleDuration: 5 docker: ################################################################ # Docker configuration backend # NB : TLS configuration not yet supported by this role, but Traefik do that ################################################################ watch: true # Docker server endpoint. Can be a tcp or a unix socket endpoint. # # Required # Default: "unix:///var/run/docker.sock" # #endpoint: "unix:///var/run/docker.sock" endpoint: "unix:///var/run/docker.sock" # useBindPortIP # # Optional # Default: false #useBindPortIP: false # Expose containers by default in traefik # # Optional # Default: true exposedByDefault: false # Network # # Optional # Default: empty #network: "empty" # Default host rule. # # Optional # Default: "Host(`{{ normalize .Name }}`)" # Sample : "Host(`{{ .Name }}.{{ index .Labels \"customLabel\"}}`)" # : "Host(`{{ index .Labels "traefik.host" }}.localhost`)" #defaultRule: "{{ sglk_role_traefik_docker_config.defaultRule }}" # Swarm mode # # Optional # Default: false #swarmMode: false # Swarm mode refresh (seconds) # # Optional # Default: 15 #swarmModeRefreshSeconds: 15 # Constraints # # Optional # Default: "" # Sample: "Label(`a.label.name`, `foo`)" #constraints: "{{ sglk_role_traefik_docker_config.constraints }}"