-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (22 loc) · 785 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (22 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -euo pipefail
echo "Starting EnterpriseHub..."
# 1. Start PostgreSQL + Redis
docker compose up -d postgres redis
# 2. Wait for Postgres to be ready
echo "Waiting for PostgreSQL..."
until docker compose exec -T postgres pg_isready -U postgres > /dev/null 2>&1; do
sleep 1
done
# 3. Run Alembic migrations
docker compose run --rm app alembic upgrade head
# 4. Seed demo data
docker compose run --rm app python scripts/seed_demo_environment.py
# 5. Start all services
docker compose up -d
echo ""
echo "EnterpriseHub is running:"
echo " Streamlit Dashboard -> http://localhost:8501"
echo " FastAPI + Swagger -> http://localhost:8000/docs"
echo " Prometheus -> http://localhost:9090"
echo " Grafana -> http://localhost:3000"