version: "3.7" services: traefik: image: traefik:v3.1.4 command: - --experimental.localPlugins.sablier.moduleName=github.com/sablierapp/sablier - --entryPoints.http.address=:80 - --providers.docker=true - --providers.file.filename=/etc/traefik/dynamic-config.yml ports: - "8080:80" volumes: - '/var/run/docker.sock:/var/run/docker.sock' - '../../../..:/plugins-local/src/github.com/sablierapp/sablier' - './dynamic-config.yml:/etc/traefik/dynamic-config.yml' restart: "no" sablier: image: sablierapp/sablier:local command: - start - --provider.name=docker - --logging.level=trace volumes: - '/var/run/docker.sock:/var/run/docker.sock' whoami: image: acouvreur/whoami:v1.10.2 # Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik # The route doesn't exist anymore. Use dynamic-config.yml file instead. healthcheck: test: [ "CMD", "curl", "-f", "http://localhost" ] interval: 5s labels: - sablier.enable=true - sablier.group=E2E # - traefik.enable # - traefik.http.routers.whoami.rule=PathPrefix(`/whoami`) # - traefik.http.routers.whoami.middlewares=ondemand nginx: image: nginx:1.27.1 healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 5s # Cannot use labels because as soon as the container is stopped, the labels are not treated by Traefik # The route doesn't exist anymore. Use dynamic-config.yml file instead. labels: - sablier.enable=true - sablier.group=E2E # - traefik.enable # - traefik.http.routers.nginx.rule=PathPrefix(`/nginx`) # - traefik.http.routers.nginx.middlewares=ondemand