blob: 9ab648ce91de9003f735664570986416cc4ede5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/env bash
set -euo pipefail
# Stop and remove containers, volumes, and orphaned containers.
# Pass --images to also remove pulled images (forces a fresh re-pull on next start).
REMOVE_IMAGES=false
for arg in "$@"; do
[[ "$arg" == "--images" ]] && REMOVE_IMAGES=true
done
sudo docker compose down --volumes --remove-orphans
sudo docker compose rm -f
if [ "$REMOVE_IMAGES" = "true" ]; then
echo "Removing cached images..."
sudo docker image rm \
ghcr.io/firecrawl/firecrawl:latest \
ghcr.io/firecrawl/playwright-service:latest \
ghcr.io/firecrawl/nuq-postgres:latest \
docker.io/searxng/searxng:latest \
rabbitmq:3-management \
redis:alpine 2>/dev/null || true
echo "Images removed."
fi
echo "Done. Run bin/up to start fresh."
|