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