Files

11 lines
202 B
Bash

#!/usr/bin/env bash
set -eu
case "${TARGET_INSTANCE_ID:-}" in
api1) service=api1 ;;
api2) service=api2 ;;
*) echo "unknown TARGET_INSTANCE_ID" >&2; exit 2 ;;
esac
docker compose stop "$service"