feat(scripts): add restart and stop-one hooks

This commit is contained in:
Голиков Maximillian Антон
2026-10-07 11:42:11 +03:00
parent d6de8c2259
commit a34c6e8e42
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
docker compose down --remove-orphans
docker compose up -d
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
exec docker stop "$TARGET_INSTANCE_ID" >/dev/null