mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:v3.1.6
|
|
command:
|
|
- --experimental.localPlugins.sablier.moduleName=github.com/acouvreur/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/acouvreur/sablier'
|
|
- './dynamic-config.yml:/etc/traefik/dynamic-config.yml'
|
|
restart: "no"
|
|
|
|
sablier:
|
|
image: acouvreur/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 |