mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-03 11:34:58 +01:00
Add 'plugins/traefik/' from commit 'aef1f9e0dd205ea9cdea9e3ccf11900c5fe79b1f'
git-subtree-dir: plugins/traefik git-subtree-mainline:1a14070131git-subtree-split:aef1f9e0dd
This commit is contained in:
22
plugins/traefik/examples/docker_classic/README.md
Normal file
22
plugins/traefik/examples/docker_classic/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Docker classic
|
||||
|
||||
## Run the demo
|
||||
|
||||
1. `git clone git@github.com:acouvreur/traefik-ondemand-plugin.git`
|
||||
2. `cd traefik-ondemand-plugin/examples/docker_classic`
|
||||
3. `export TRAEFIK_PILOT_TOKEN=...`
|
||||
4. `docker-compose up`
|
||||
|
||||
The log: `level=error msg="middleware \"ondemand@docker\" does not exist" entryPointName=http routerName=whoami@file` is expected because the file provider is parsed before the docker containers. However this should appear only once and not cause any issue.
|
||||
5. `docker stop docker_classic_whoami_1`
|
||||
6. Load `http://localhost/whoami`
|
||||
7. Wait 1 minute
|
||||
8. 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.
|
||||
Reference in New Issue
Block a user