#!/bin/sh set -eu cd "$(dirname "$0")/.." : "${TARGET_INSTANCE_ID:?test provides target API instance alias}" case "$TARGET_INSTANCE_ID" in api-1|api-2) ;; *) echo "unexpected instance" >&2; exit 1 ;; esac docker compose --env-file .env stop -t 2 "$TARGET_INSTANCE_ID"