forked from mtusi2026/mtusi2026lab3
9 lines
177 B
Bash
9 lines
177 B
Bash
#!/bin/sh
|
|
set -eu
|
|
: "${TARGET_INSTANCE_ID:?}"
|
|
case "$TARGET_INSTANCE_ID" in
|
|
api-1) SERVICE=api1 ;;
|
|
api-2) SERVICE=api2 ;;
|
|
*) exit 2 ;;
|
|
esac
|
|
docker compose start "$SERVICE" |