mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-24 22:39:25 +01:00
git-subtree-dir: plugins/traefik git-subtree-mainline:1a14070131git-subtree-split:aef1f9e0dd
827 B
827 B
Docker classic
Run the demo
-
git clone git@github.com:acouvreur/traefik-ondemand-plugin.git -
cd traefik-ondemand-plugin/examples/docker_classic -
export TRAEFIK_PILOT_TOKEN=... -
docker-compose upThe log:
level=error msg="middleware \"ondemand@docker\" does not exist" entryPointName=http routerName=whoami@fileis expected because the file provider is parsed before the docker containers. However this should appear only once and not cause any issue. -
docker stop docker_classic_whoami_1 -
Load
http://localhost/whoami -
Wait 1 minute
-
Container is stopped
Limitations
Cannot use service labels
Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik.
The route doesn't exist anymore, so we use dynamic-config.yml file instead.