mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-04 03:54:56 +01:00
This feature adds the capability to stop unregistered running instances upon startup. Previously, you had to stop running instances manually or issue an initial request that will shut down instances afterwards. With this change, all discovered instances will be shutdown. They need to be registered using labels. E.g.: sablier.enable=true Fixes #153
38 lines
817 B
YAML
38 lines
817 B
YAML
version: '3.9'
|
|
|
|
services:
|
|
proxy:
|
|
image: nginx:1.27.0
|
|
ports:
|
|
- 8080:80
|
|
volumes:
|
|
# Used to load js module
|
|
- ../nginx.conf:/etc/nginx/nginx.conf
|
|
- ../../njs/sablier.js:/etc/nginx/conf.d/sablier.js
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
sablier:
|
|
image: acouvreur/sablier:local
|
|
ports:
|
|
- 10000:10000
|
|
command:
|
|
- start
|
|
- --provider.name=docker
|
|
- --logging.level=trace
|
|
volumes:
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
whoami:
|
|
image: containous/whoami:v1.5.0
|
|
labels:
|
|
- sablier.enable=true
|
|
- sablier.group=E2E
|
|
|
|
nginx:
|
|
image: nginx:1.27.0
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
interval: 5s
|
|
labels:
|
|
- sablier.enable=true
|
|
- sablier.group=E2E |