16 lines
467 B
Bash
16 lines
467 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "WARNING: This will stop the stack and wipe PostgreSQL, RustFS, and Valkey volumes."
|
|
read -rp "Type 'RESET' to continue: " ans
|
|
[[ ${ans:-} == "RESET" ]] || { echo "Aborted."; exit 1; }
|
|
|
|
docker compose down
|
|
|
|
for vol in stellaops-postgres stellaops-rustfs stellaops-valkey; do
|
|
echo "Removing volume $vol"
|
|
docker volume rm "$vol" || true
|
|
done
|
|
|
|
echo "Reset complete. Re-run compose with your env file to recreate volumes."
|