mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-16 04:01:57 +00:00
correct dev script
This commit is contained in:
parent
753f3df197
commit
8078b92c6c
4 changed files with 57 additions and 8 deletions
|
|
@ -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[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue