Skip to content

changing Traefik options in development #231

@nareto

Description

@nareto

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions