correct dev script

This commit is contained in:
Harivansh Rathi 2026-04-01 00:02:16 +00:00
parent 753f3df197
commit 8078b92c6c
4 changed files with 57 additions and 8 deletions

View file

@ -5,5 +5,10 @@ set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
compose_file="$repo_root/docker/compose.dev.yml"
docker compose -f "$compose_file" down --remove-orphans
args=(down --remove-orphans)
if [[ "${1:-}" == "--volumes" ]]; then
args+=(--volumes)
fi
docker compose -f "$compose_file" "${args[@]}"