This commit is contained in:
NishantRajputRN
2026-05-19 18:15:10 +05:30
parent 554c873f5d
commit 1008771b93
5 changed files with 71 additions and 7 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [[ ! -f ../backend/package.json ]]; then
echo "Error: run from repo root layout (deploy/ next to backend/ and frontend/)."
echo " Expected: Authentik/backend Authentik/frontend Authentik/deploy"
exit 1
fi
if [[ ! -f .env ]]; then
echo "Missing deploy/.env — creating from .env.example"
cp .env.example .env
echo "Edit .env if needed, then run this script again."
exit 1
fi
if ! grep -q '^AUTHENTIK_URL=.' .env 2>/dev/null; then
echo "Error: AUTHENTIK_URL is empty in deploy/.env"
exit 1
fi
docker compose --env-file .env up -d --build "$@"
echo ""
echo "Status:"
docker compose --env-file .env ps
echo ""
echo "API health:"
sleep 3
curl -fsS "http://127.0.0.1:${API_PORT:-3001}/health" && echo || {
echo "API not responding — check logs:"
echo " docker compose --env-file .env logs api --tail 80"
}