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