Files
sablier/plugins/proxywasm/e2e/apacheapisix/docker/compose.yaml
Alexis Couvreur dfb9bacf59 feat(providers): add provider.auto-stop-on-startup argument (#346)
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
2024-10-01 17:30:14 -07:00

34 lines
815 B
YAML

services:
apisix:
image: apache/apisix:3.9.1-debian
restart: always
volumes:
- ./config.yaml:/usr/local/apisix/conf/config.yaml:ro
- ./apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro
- ../../../sablierproxywasm.wasm:/wasm/sablierproxywasm.wasm
ports:
- "8080:9080/tcp"
sablier:
image: acouvreur/sablier:local
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