I created this feature request under github (auto-closed).
The goal would be to get ride of all traefik labels in my docker-compose.yaml, and load all the traefik/container config from dynamic configuration system.
Why ? Today if I want to change a running container configuration concerning Traefik, I have to change traefik labels and restart this container. What I don't want. So dynamic file configuration would be more comfortable to do this.
Is it already possible to link dynamic config file and containers at the moment or am I blind ?
Thanks @ldez for your help and your answers on github & community forum !
So I tried the very minimal of what I would like as configuration (example below with privatebin) :
# docker-compose.yaml
version: '3.4'
services:
privatebin:
...
container_name: "privatebin"
expose:
- '80'
labels:
- traefik.enable=true
- traefik.http.services.privatebin.loadbalancer.server.port=80
# OK to describe the port here, it makes sense.
# nothing else should be described here
volumes:
...