Docker Configuration Reference

Dynamic configuration with Docker Labels

The labels are case insensitive.

  1. labels:
  2. - "traefik.enable=true"
  3. - "traefik.docker.network=foobar"
  4. - "traefik.docker.lbswarm=true"
  5. - "traefik.http.middlewares.middleware00.addprefix.prefix=foobar"
  6. - "traefik.http.middlewares.middleware01.basicauth.headerfield=foobar"
  7. - "traefik.http.middlewares.middleware01.basicauth.realm=foobar"
  8. - "traefik.http.middlewares.middleware01.basicauth.removeheader=true"
  9. - "traefik.http.middlewares.middleware01.basicauth.users=foobar, foobar"
  10. - "traefik.http.middlewares.middleware01.basicauth.usersfile=foobar"
  11. - "traefik.http.middlewares.middleware02.buffering.maxrequestbodybytes=42"
  12. - "traefik.http.middlewares.middleware02.buffering.maxresponsebodybytes=42"
  13. - "traefik.http.middlewares.middleware02.buffering.memrequestbodybytes=42"
  14. - "traefik.http.middlewares.middleware02.buffering.memresponsebodybytes=42"
  15. - "traefik.http.middlewares.middleware02.buffering.retryexpression=foobar"
  16. - "traefik.http.middlewares.middleware03.chain.middlewares=foobar, foobar"
  17. - "traefik.http.middlewares.middleware04.circuitbreaker.expression=foobar"
  18. - "traefik.http.middlewares.middleware04.circuitbreaker.checkperiod=42s"
  19. - "traefik.http.middlewares.middleware04.circuitbreaker.fallbackduration=42s"
  20. - "traefik.http.middlewares.middleware04.circuitbreaker.recoveryduration=42s"
  21. - "traefik.http.middlewares.middleware05.compress=true"
  22. - "traefik.http.middlewares.middleware05.compress.excludedcontenttypes=foobar, foobar"
  23. - "traefik.http.middlewares.middleware05.compress.minresponsebodybytes=42"
  24. - "traefik.http.middlewares.middleware06.contenttype.autodetect=true"
  25. - "traefik.http.middlewares.middleware07.digestauth.headerfield=foobar"
  26. - "traefik.http.middlewares.middleware07.digestauth.realm=foobar"
  27. - "traefik.http.middlewares.middleware07.digestauth.removeheader=true"
  28. - "traefik.http.middlewares.middleware07.digestauth.users=foobar, foobar"
  29. - "traefik.http.middlewares.middleware07.digestauth.usersfile=foobar"
  30. - "traefik.http.middlewares.middleware08.errors.query=foobar"
  31. - "traefik.http.middlewares.middleware08.errors.service=foobar"
  32. - "traefik.http.middlewares.middleware08.errors.status=foobar, foobar"
  33. - "traefik.http.middlewares.middleware09.forwardauth.address=foobar"
  34. - "traefik.http.middlewares.middleware09.forwardauth.authresponseheaders=foobar, foobar"
  35. - "traefik.http.middlewares.middleware09.forwardauth.authresponseheadersregex=foobar"
  36. - "traefik.http.middlewares.middleware09.forwardauth.authrequestheaders=foobar, foobar"
  37. - "traefik.http.middlewares.middleware09.forwardauth.tls.ca=foobar"
  38. - "traefik.http.middlewares.middleware09.forwardauth.tls.caoptional=true"
  39. - "traefik.http.middlewares.middleware09.forwardauth.tls.cert=foobar"
  40. - "traefik.http.middlewares.middleware09.forwardauth.tls.insecureskipverify=true"
  41. - "traefik.http.middlewares.middleware09.forwardauth.tls.key=foobar"
  42. - "traefik.http.middlewares.middleware09.forwardauth.trustforwardheader=true"
  43. - "traefik.http.middlewares.middleware10.headers.accesscontrolallowcredentials=true"
  44. - "traefik.http.middlewares.middleware10.headers.accesscontrolallowheaders=foobar, foobar"
  45. - "traefik.http.middlewares.middleware10.headers.accesscontrolallowmethods=foobar, foobar"
  46. - "traefik.http.middlewares.middleware10.headers.accesscontrolalloworiginlist=foobar, foobar"
  47. - "traefik.http.middlewares.middleware10.headers.accesscontrolalloworiginlistregex=foobar, foobar"
  48. - "traefik.http.middlewares.middleware10.headers.accesscontrolexposeheaders=foobar, foobar"
  49. - "traefik.http.middlewares.middleware10.headers.accesscontrolmaxage=42"
  50. - "traefik.http.middlewares.middleware10.headers.addvaryheader=true"
  51. - "traefik.http.middlewares.middleware10.headers.allowedhosts=foobar, foobar"
  52. - "traefik.http.middlewares.middleware10.headers.browserxssfilter=true"
  53. - "traefik.http.middlewares.middleware10.headers.contentsecuritypolicy=foobar"
  54. - "traefik.http.middlewares.middleware10.headers.contenttypenosniff=true"
  55. - "traefik.http.middlewares.middleware10.headers.custombrowserxssvalue=foobar"
  56. - "traefik.http.middlewares.middleware10.headers.customframeoptionsvalue=foobar"
  57. - "traefik.http.middlewares.middleware10.headers.customrequestheaders.name0=foobar"
  58. - "traefik.http.middlewares.middleware10.headers.customrequestheaders.name1=foobar"
  59. - "traefik.http.middlewares.middleware10.headers.customresponseheaders.name0=foobar"
  60. - "traefik.http.middlewares.middleware10.headers.customresponseheaders.name1=foobar"
  61. - "traefik.http.middlewares.middleware10.headers.featurepolicy=foobar"
  62. - "traefik.http.middlewares.middleware10.headers.forcestsheader=true"
  63. - "traefik.http.middlewares.middleware10.headers.framedeny=true"
  64. - "traefik.http.middlewares.middleware10.headers.hostsproxyheaders=foobar, foobar"
  65. - "traefik.http.middlewares.middleware10.headers.isdevelopment=true"
  66. - "traefik.http.middlewares.middleware10.headers.permissionspolicy=foobar"
  67. - "traefik.http.middlewares.middleware10.headers.publickey=foobar"
  68. - "traefik.http.middlewares.middleware10.headers.referrerpolicy=foobar"
  69. - "traefik.http.middlewares.middleware10.headers.sslforcehost=true"
  70. - "traefik.http.middlewares.middleware10.headers.sslhost=foobar"
  71. - "traefik.http.middlewares.middleware10.headers.sslproxyheaders.name0=foobar"
  72. - "traefik.http.middlewares.middleware10.headers.sslproxyheaders.name1=foobar"
  73. - "traefik.http.middlewares.middleware10.headers.sslredirect=true"
  74. - "traefik.http.middlewares.middleware10.headers.ssltemporaryredirect=true"
  75. - "traefik.http.middlewares.middleware10.headers.stsincludesubdomains=true"
  76. - "traefik.http.middlewares.middleware10.headers.stspreload=true"
  77. - "traefik.http.middlewares.middleware10.headers.stsseconds=42"
  78. - "traefik.http.middlewares.middleware11.ipwhitelist.ipstrategy.depth=42"
  79. - "traefik.http.middlewares.middleware11.ipwhitelist.ipstrategy.excludedips=foobar, foobar"
  80. - "traefik.http.middlewares.middleware11.ipwhitelist.sourcerange=foobar, foobar"
  81. - "traefik.http.middlewares.middleware12.inflightreq.amount=42"
  82. - "traefik.http.middlewares.middleware12.inflightreq.sourcecriterion.ipstrategy.depth=42"
  83. - "traefik.http.middlewares.middleware12.inflightreq.sourcecriterion.ipstrategy.excludedips=foobar, foobar"
  84. - "traefik.http.middlewares.middleware12.inflightreq.sourcecriterion.requestheadername=foobar"
  85. - "traefik.http.middlewares.middleware12.inflightreq.sourcecriterion.requesthost=true"
  86. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.commonname=true"
  87. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.country=true"
  88. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.domaincomponent=true"
  89. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.locality=true"
  90. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.organization=true"
  91. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.province=true"
  92. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.issuer.serialnumber=true"
  93. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.notafter=true"
  94. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.notbefore=true"
  95. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.sans=true"
  96. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.serialnumber=true"
  97. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.commonname=true"
  98. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.country=true"
  99. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.domaincomponent=true"
  100. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.locality=true"
  101. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.organization=true"
  102. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.organizationalunit=true"
  103. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.province=true"
  104. - "traefik.http.middlewares.middleware13.passtlsclientcert.info.subject.serialnumber=true"
  105. - "traefik.http.middlewares.middleware13.passtlsclientcert.pem=true"
  106. - "traefik.http.middlewares.middleware14.plugin.foobar.foo=bar"
  107. - "traefik.http.middlewares.middleware15.ratelimit.average=42"
  108. - "traefik.http.middlewares.middleware15.ratelimit.burst=42"
  109. - "traefik.http.middlewares.middleware15.ratelimit.period=42"
  110. - "traefik.http.middlewares.middleware15.ratelimit.sourcecriterion.ipstrategy.depth=42"
  111. - "traefik.http.middlewares.middleware15.ratelimit.sourcecriterion.ipstrategy.excludedips=foobar, foobar"
  112. - "traefik.http.middlewares.middleware15.ratelimit.sourcecriterion.requestheadername=foobar"
  113. - "traefik.http.middlewares.middleware15.ratelimit.sourcecriterion.requesthost=true"
  114. - "traefik.http.middlewares.middleware16.redirectregex.permanent=true"
  115. - "traefik.http.middlewares.middleware16.redirectregex.regex=foobar"
  116. - "traefik.http.middlewares.middleware16.redirectregex.replacement=foobar"
  117. - "traefik.http.middlewares.middleware17.redirectscheme.permanent=true"
  118. - "traefik.http.middlewares.middleware17.redirectscheme.port=foobar"
  119. - "traefik.http.middlewares.middleware17.redirectscheme.scheme=foobar"
  120. - "traefik.http.middlewares.middleware18.replacepath.path=foobar"
  121. - "traefik.http.middlewares.middleware19.replacepathregex.regex=foobar"
  122. - "traefik.http.middlewares.middleware19.replacepathregex.replacement=foobar"
  123. - "traefik.http.middlewares.middleware20.retry.attempts=42"
  124. - "traefik.http.middlewares.middleware20.retry.initialinterval=42"
  125. - "traefik.http.middlewares.middleware21.stripprefix.forceslash=true"
  126. - "traefik.http.middlewares.middleware21.stripprefix.prefixes=foobar, foobar"
  127. - "traefik.http.middlewares.middleware22.stripprefixregex.regex=foobar, foobar"
  128. - "traefik.http.routers.router0.entrypoints=foobar, foobar"
  129. - "traefik.http.routers.router0.middlewares=foobar, foobar"
  130. - "traefik.http.routers.router0.priority=42"
  131. - "traefik.http.routers.router0.rule=foobar"
  132. - "traefik.http.routers.router0.service=foobar"
  133. - "traefik.http.routers.router0.tls=true"
  134. - "traefik.http.routers.router0.tls.certresolver=foobar"
  135. - "traefik.http.routers.router0.tls.domains[0].main=foobar"
  136. - "traefik.http.routers.router0.tls.domains[0].sans=foobar, foobar"
  137. - "traefik.http.routers.router0.tls.domains[1].main=foobar"
  138. - "traefik.http.routers.router0.tls.domains[1].sans=foobar, foobar"
  139. - "traefik.http.routers.router0.tls.options=foobar"
  140. - "traefik.http.routers.router1.entrypoints=foobar, foobar"
  141. - "traefik.http.routers.router1.middlewares=foobar, foobar"
  142. - "traefik.http.routers.router1.priority=42"
  143. - "traefik.http.routers.router1.rule=foobar"
  144. - "traefik.http.routers.router1.service=foobar"
  145. - "traefik.http.routers.router1.tls=true"
  146. - "traefik.http.routers.router1.tls.certresolver=foobar"
  147. - "traefik.http.routers.router1.tls.domains[0].main=foobar"
  148. - "traefik.http.routers.router1.tls.domains[0].sans=foobar, foobar"
  149. - "traefik.http.routers.router1.tls.domains[1].main=foobar"
  150. - "traefik.http.routers.router1.tls.domains[1].sans=foobar, foobar"
  151. - "traefik.http.routers.router1.tls.options=foobar"
  152. - "traefik.http.services.service01.loadbalancer.healthcheck.followredirects=true"
  153. - "traefik.http.services.service01.loadbalancer.healthcheck.headers.name0=foobar"
  154. - "traefik.http.services.service01.loadbalancer.healthcheck.headers.name1=foobar"
  155. - "traefik.http.services.service01.loadbalancer.healthcheck.hostname=foobar"
  156. - "traefik.http.services.service01.loadbalancer.healthcheck.interval=foobar"
  157. - "traefik.http.services.service01.loadbalancer.healthcheck.path=foobar"
  158. - "traefik.http.services.service01.loadbalancer.healthcheck.method=foobar"
  159. - "traefik.http.services.service01.loadbalancer.healthcheck.port=42"
  160. - "traefik.http.services.service01.loadbalancer.healthcheck.scheme=foobar"
  161. - "traefik.http.services.service01.loadbalancer.healthcheck.timeout=foobar"
  162. - "traefik.http.services.service01.loadbalancer.passhostheader=true"
  163. - "traefik.http.services.service01.loadbalancer.responseforwarding.flushinterval=foobar"
  164. - "traefik.http.services.service01.loadbalancer.serverstransport=foobar"
  165. - "traefik.http.services.service01.loadbalancer.sticky.cookie=true"
  166. - "traefik.http.services.service01.loadbalancer.sticky.cookie.httponly=true"
  167. - "traefik.http.services.service01.loadbalancer.sticky.cookie.name=foobar"
  168. - "traefik.http.services.service01.loadbalancer.sticky.cookie.samesite=foobar"
  169. - "traefik.http.services.service01.loadbalancer.sticky.cookie.secure=true"
  170. - "traefik.http.services.service01.loadbalancer.server.port=foobar"
  171. - "traefik.http.services.service01.loadbalancer.server.scheme=foobar"
  172. - "traefik.tcp.middlewares.tcpmiddleware00.ipwhitelist.sourcerange=foobar, foobar"
  173. - "traefik.tcp.middlewares.tcpmiddleware01.inflightconn.amount=42"
  174. - "traefik.tcp.routers.tcprouter0.entrypoints=foobar, foobar"
  175. - "traefik.tcp.routers.tcprouter0.middlewares=foobar, foobar"
  176. - "traefik.tcp.routers.tcprouter0.rule=foobar"
  177. - "traefik.tcp.routers.tcprouter0.priority=42"
  178. - "traefik.tcp.routers.tcprouter0.service=foobar"
  179. - "traefik.tcp.routers.tcprouter0.tls=true"
  180. - "traefik.tcp.routers.tcprouter0.tls.certresolver=foobar"
  181. - "traefik.tcp.routers.tcprouter0.tls.domains[0].main=foobar"
  182. - "traefik.tcp.routers.tcprouter0.tls.domains[0].sans=foobar, foobar"
  183. - "traefik.tcp.routers.tcprouter0.tls.domains[1].main=foobar"
  184. - "traefik.tcp.routers.tcprouter0.tls.domains[1].sans=foobar, foobar"
  185. - "traefik.tcp.routers.tcprouter0.tls.options=foobar"
  186. - "traefik.tcp.routers.tcprouter0.tls.passthrough=true"
  187. - "traefik.tcp.routers.tcprouter1.entrypoints=foobar, foobar"
  188. - "traefik.tcp.routers.tcprouter1.middlewares=foobar, foobar"
  189. - "traefik.tcp.routers.tcprouter1.rule=foobar"
  190. - "traefik.tcp.routers.tcprouter1.priority=42"
  191. - "traefik.tcp.routers.tcprouter1.service=foobar"
  192. - "traefik.tcp.routers.tcprouter1.tls=true"
  193. - "traefik.tcp.routers.tcprouter1.tls.certresolver=foobar"
  194. - "traefik.tcp.routers.tcprouter1.tls.domains[0].main=foobar"
  195. - "traefik.tcp.routers.tcprouter1.tls.domains[0].sans=foobar, foobar"
  196. - "traefik.tcp.routers.tcprouter1.tls.domains[1].main=foobar"
  197. - "traefik.tcp.routers.tcprouter1.tls.domains[1].sans=foobar, foobar"
  198. - "traefik.tcp.routers.tcprouter1.tls.options=foobar"
  199. - "traefik.tcp.routers.tcprouter1.tls.passthrough=true"
  200. - "traefik.tcp.services.tcpservice01.loadbalancer.proxyprotocol.version=42"
  201. - "traefik.tcp.services.tcpservice01.loadbalancer.terminationdelay=42"
  202. - "traefik.tcp.services.tcpservice01.loadbalancer.server.port=foobar"
  203. - "traefik.udp.routers.udprouter0.entrypoints=foobar, foobar"
  204. - "traefik.udp.routers.udprouter0.service=foobar"
  205. - "traefik.udp.routers.udprouter1.entrypoints=foobar, foobar"
  206. - "traefik.udp.routers.udprouter1.service=foobar"
  207. - "traefik.udp.services.udpservice01.loadbalancer.server.port=foobar"
  208. - "traefik.tls.stores.Store0.defaultcertificate.certfile=foobar"
  209. - "traefik.tls.stores.Store0.defaultcertificate.keyfile=foobar"
  210. - "traefik.tls.stores.Store0.defaultgeneratedcert.domain.main=foobar"
  211. - "traefik.tls.stores.Store0.defaultgeneratedcert.domain.sans=foobar, foobar"
  212. - "traefik.tls.stores.Store0.defaultgeneratedcert.resolver=foobar"
  213. - "traefik.tls.stores.Store1.defaultcertificate.certfile=foobar"
  214. - "traefik.tls.stores.Store1.defaultcertificate.keyfile=foobar"
  215. - "traefik.tls.stores.Store1.defaultgeneratedcert.domain.main=foobar"
  216. - "traefik.tls.stores.Store1.defaultgeneratedcert.domain.sans=foobar, foobar"
  217. - "traefik.tls.stores.Store1.defaultgeneratedcert.resolver=foobar"