Guest User

docker-traefik.toml

a guest
Sep 5th, 2018
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. ################################################################
  2. # Global configuration
  3. ################################################################
  4.  
  5. # Enable debug mode
  6. #
  7. # Optional
  8. # Default: false
  9. #
  10. # debug = true
  11.  
  12. # Log level
  13. #
  14. # Optional
  15. # Default: "ERROR"
  16. #
  17. # logLevel = "DEBUG"
  18.  
  19. # Entrypoints to be used by frontends that do not specify any entrypoint.
  20. # Each frontend can specify its own entrypoints.
  21. #
  22. # Optional
  23. # Default: ["http"]
  24. #
  25.  
  26. defaultEntryPoints = ["http", "https"]
  27.  
  28. [web]
  29. address = ":8080"
  30.  
  31. ################################################################
  32. # Entrypoints configuration
  33. ################################################################
  34.  
  35. # Entrypoints definition
  36. #
  37. # Optional
  38. # Default:
  39. [entryPoints]
  40. [entryPoints.http]
  41. address = ":80"
  42.  
  43. [entryPoints.https]
  44. address = ":443"
  45. [entryPoints.https.tls]
  46.  
  47.  
  48.  
  49. ################################################################
  50. # Traefik logs configuration
  51. ################################################################
  52.  
  53. # Traefik logs
  54. # Enabled by default and log to stdout
  55. #
  56. # Optional
  57. #
  58. # [traefikLog]
  59.  
  60. # Sets the filepath for the traefik log. If not specified, stdout will be used.
  61. # Intermediate directories are created if necessary.
  62. #
  63. # Optional
  64. # Default: os.Stdout
  65. #
  66. # filePath = "log/traefik.log"
  67.  
  68. # Format is either "json" or "common".
  69. #
  70. # Optional
  71. # Default: "common"
  72. #
  73. # format = "common"
  74.  
  75. ################################################################
  76. # Access logs configuration
  77. ################################################################
  78.  
  79. # Enable access logs
  80. # By default it will write to stdout and produce logs in the textual
  81. # Common Log Format (CLF), extended with additional fields.
  82. #
  83. # Optional
  84. #
  85. # [accessLog]
  86.  
  87. # Sets the file path for the access log. If not specified, stdout will be used.
  88. # Intermediate directories are created if necessary.
  89. #
  90. # Optional
  91. # Default: os.Stdout
  92. #
  93. # filePath = "/path/to/log/log.txt"
  94.  
  95. # Format is either "json" or "common".
  96. #
  97. # Optional
  98. # Default: "common"
  99. #
  100. # format = "common"
  101.  
  102. ################################################################
  103. # API and dashboard configuration
  104. ################################################################
  105.  
  106. # Enable API and dashboard
  107. [api]
  108.  
  109. # Name of the related entry point
  110. #
  111. # Optional
  112. # Default: "traefik"
  113. #
  114. # entryPoint = "traefik"
  115.  
  116. # Enabled Dashboard
  117. #
  118. # Optional
  119. # Default: true
  120. #
  121. # dashboard = false
  122.  
  123. ################################################################
  124. # Ping configuration
  125. ################################################################
  126.  
  127. # Enable ping
  128. [ping]
  129.  
  130. # Name of the related entry point
  131. #
  132. # Optional
  133. # Default: "traefik"
  134. #
  135. # entryPoint = "traefik"
  136.  
  137. ################################################################
  138. # Docker configuration backend
  139. ################################################################
  140.  
  141. # Enable Docker configuration backend
  142. [docker]
  143. endpoint = "unix:///var/run/docker.sock"
  144. domain = "docker.localhost"
  145. watch = true
  146. exposedByDefault = false
  147.  
  148. # Docker server endpoint. Can be a tcp or a unix socket endpoint.
  149. #
  150. # Required
  151. # Default: "unix:///var/run/docker.sock"
  152. #
  153. # endpoint = "tcp://10.10.10.10:2375"
  154.  
  155. # Default domain used.
  156. # Can be overridden by setting the "traefik.domain" label on a container.
  157. #
  158. # Optional
  159. # Default: ""
  160. #
  161. # domain = "docker.localhost"
  162.  
  163. # Expose containers by default in traefik
  164. #
  165. # Optional
  166. # Default: true
  167. #
  168. # exposedByDefault = true
  169.  
  170. [acme]
  171. storage = "acme.json"
  172. onHostRule = true
  173. entryPoint = "https"
  174. [acme.httpChallenge]
  175. entryPoint = "http"
Advertisement
Add Comment
Please, Sign In to add comment