mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 12:03:49 +00:00
introduce .env
This commit is contained in:
parent
4f46d2f3df
commit
5d97c33d7e
6 changed files with 51 additions and 24 deletions
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
compose_file="$repo_root/infra/docker/compose.dev.yml"
|
||||
# shellcheck disable=SC1091
|
||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/runtime-env.sh"
|
||||
|
||||
args=(down --remove-orphans)
|
||||
|
||||
|
|
@ -11,4 +11,4 @@ if [[ "${1:-}" == "--volumes" ]]; then
|
|||
args+=(--volumes)
|
||||
fi
|
||||
|
||||
docker compose -f "$compose_file" "${args[@]}"
|
||||
compose "${args[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue