21 lines
850 B
Bash
Executable File
21 lines
850 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# run-stack.sh — avvia lo stack Compose locale di ThothII in primo piano.
|
|
#
|
|
# Il core include Pi; DWH, vector DB, embedding e LLM sono endpoint esterni configurati
|
|
# in deploy/env/local.env. Non richiede un eseguibile Pi sull'host.
|
|
#
|
|
# Preparazione: cp deploy/env/local.env.example deploy/env/local.env e compilare i valori.
|
|
# Uso: ./scripts/run-stack.sh [argomenti aggiuntivi per docker compose up]
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
|
|
LOCAL_ENV_FILE="${THT_LOCAL_ENV_FILE:-$ROOT/deploy/env/local.env}"
|
|
|
|
[[ -f "$LOCAL_ENV_FILE" ]] || {
|
|
echo "ERRORE: $LOCAL_ENV_FILE mancante. Copia deploy/env/local.env.example e configura gli endpoint." >&2
|
|
exit 1
|
|
}
|
|
|
|
exec docker compose --env-file "$LOCAL_ENV_FILE" \
|
|
-f "$ROOT/compose.yaml" -f "$ROOT/deploy/compose.local.yaml" up --build "$@"
|