#!/bin/sh set -eu cd "$(dirname "$0")/.." case "${TARGET_INSTANCE_ID:-}" in api1|api2) docker compose stop "$TARGET_INSTANCE_ID" ;; *) echo 'Unknown target instance' >&2; exit 1 ;; esac