stop.sh 14 lignes · 452 octets
#!/usr/bin/env bash
# Pause the testbed without losing state. Containers and volumes stay,
# DB data preserved. Resume later with ./scripts/start.sh.
#
# For a full purge (fresh state on next setup), use ./scripts/teardown.sh.

set -euo pipefail

cd "$(dirname "$0")/.."

echo "==> docker compose stop (containers paused, volumes preserved)"
docker compose stop

echo "==> Stopped. Resume with ./scripts/start.sh, or purge with ./scripts/teardown.sh."