@@ -0,0 +1,23 @@
1+#!/usr/bin/env bash
2+set -euo pipefail
3+
4+# Stop Valkey container if it exists
5+if docker ps -a --format '{{.Names}}' | grep -q '^valkey$'; then
6+ echo "Stopping Valkey container..."
7+ docker stop valkey
8+ echo "Valkey container stopped."
9+else
10+ echo "Valkey container not found."
11+fi
12+
13+# Stop PostgreSQL container if it exists
14+if docker ps -a --format '{{.Names}}' | grep -q '^postgres$'; then
15+ echo "Stopping PostgreSQL container..."
16+ docker stop postgres
17+ echo "PostgreSQL container stopped."
18+else
19+ echo "PostgreSQL container not found."
20+fi
21+
22+echo "Docker containers stopped successfully!"
23+