This commit is contained in:
j
2026-03-07 19:32:02 +13:00
commit bd907c8d40
21 changed files with 1303 additions and 0 deletions

13
destroy.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
_check_required_env_vars "CONTAINER_NAME" "DATA_VOLUME"
echo "WARNING: This will PERMANENTLY DELETE all data for ${CONTAINER_NAME}"
docker compose -p "${CONTAINER_NAME}" down 2>/dev/null || true
_remove_volume "$DATA_VOLUME"
echo "Service and all data destroyed"