mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 10:05:14 +00:00
14 lines
291 B
Bash
Executable file
14 lines
291 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
compose_file="$repo_root/docker/compose.dev.yml"
|
|
|
|
args=(down --remove-orphans)
|
|
|
|
if [[ "${1:-}" == "--volumes" ]]; then
|
|
args+=(--volumes)
|
|
fi
|
|
|
|
docker compose -f "$compose_file" "${args[@]}"
|