chore(ops): harden deployment and runtime setup
This commit is contained in:
parent
1d7e7c41c9
commit
c35bd5877e
30 changed files with 534 additions and 61 deletions
19
scripts/deploy.sh
Executable file
19
scripts/deploy.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
COMPOSE="${COMPOSE:-docker compose}"
|
||||
BASE_URL="${BASE_URL:-http://localhost:3010}"
|
||||
|
||||
echo "Pruefe Docker Compose Konfiguration..."
|
||||
$COMPOSE config >/dev/null
|
||||
|
||||
echo "Baue Container..."
|
||||
$COMPOSE build
|
||||
|
||||
echo "Starte Container..."
|
||||
$COMPOSE up -d
|
||||
|
||||
echo "Fuehre Healthcheck aus..."
|
||||
BASE_URL="$BASE_URL" scripts/healthcheck.sh
|
||||
|
||||
echo "Deployment abgeschlossen."
|
||||
Loading…
Add table
Add a link
Reference in a new issue