Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

changing Traefik options in development #1827

Answered by paxcodes
nareto asked this question in Questions
Discussion options

I would like to use the Traefik buffering middleware for the backend to limit the size of the incoming requests. However, no matter how I change the labels in docker-compose.yml, it doesn't seem to affect Traefik (at least what it shows in the dashboard). This is what I have now (relevant part of docker-compose.yml):

proxy:
 image: traefik:v2.2
 deploy:
 labels:
 - traefik.http.middlewares.${STACK_NAME?Variable not set}-limit.buffering.maxRequestBodyBytes=500000
backend:
 deploy:
 labels:
 - traefik.http.routers.${STACK_NAME?Variable not set}-backend-http.middlewares=${STACK_NAME?Variable not set}-limit

However, after stopping the proxy container and running docker-compose up -d, the middleware does not show up in the Traefik UI.

BTW I would like these changes to be present ALSO when I deploy.

You must be logged in to vote

If you need it in development, you'd also have to put it in the labels prop of your container in override.yml.

deploy prop is only used when you deploy your stack.

Replies: 1 comment

Comment options

If you need it in development, you'd also have to put it in the labels prop of your container in override.yml.

deploy prop is only used when you deploy your stack.

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #231 on September 02, 2025 18:55.

AltStyle によって変換されたページ (->オリジナル) /