Files
sablier/plugins/traefik/e2e/docker/docker-compose.yml
Alexis Couvreur fad97d7901 fix(provider): add debug logging (#653)
* fix(provider): add debug logging

Add a bunch of debug logging calls

* return a swarm service pointer

* revert to service list with status true

* change trace to debug

* --no-verify
2025-07-30 22:44:20 -04:00

54 lines
1.8 KiB
YAML

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=debug
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