forked from mongrel-intelligence/cascade
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (24 loc) · 795 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (24 loc) · 795 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
#!/bin/bash
set -e
# Source .env so bash has access to user-configured vars (ports, passwords).
# Docker Compose reads .env automatically, but bash does not.
if [ -f .env ]; then
set -a
source .env
set +a
fi
echo "==> Building CASCADE images..."
docker compose build
docker compose --profile build-only build worker
echo "==> Running database migrations..."
docker compose --profile setup run --rm migrate
echo "==> Starting CASCADE..."
docker compose up -d
DASHBOARD_PORT=${DASHBOARD_PORT:-3001}
echo ""
echo "CASCADE is running!"
echo " Dashboard: http://localhost:${DASHBOARD_PORT}"
echo ""
echo "Next: create an admin user:"
echo " docker compose exec dashboard node dist/tools/create-admin-user.mjs \\"
echo " --email admin@example.com --password changeme --name \"Admin\""