mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-25 14:59:16 +01:00
Add plugins folder to integrate with multiple reverse proxies The project is now released as 'Sablier'
Docker swarm
Run the demo
git clone git@github.com:acouvreur/sablier.gitcd sablier/plugins/traefik/examples/multiple_containersdocker swarm initexport TRAEFIK_PILOT_TOKEN=...docker stack deploy -c docker-stack.yml DOCKER_SWARM- Load
http://localhost/nginx - Load
http://localhost/whoami - After 1 minute whoami is scaled to 0/0
- After 5 minutes nginx is scaled to 0/0
docker stack rm DOCKER_SWARM
Limitations
Define a middleware per service/container
Due to Traefik plugin, the interface is to provide a config and a ServeHTTP request.
This function has no access to the Traefik configuration, thus no way to determine the container/service associated to the request.
See https://github.com/acouvreur/sablier/issues/8#issuecomment-931940533.