-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
50 lines (44 loc) · 1.89 KB
/
start.sh
File metadata and controls
50 lines (44 loc) · 1.89 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
echo "
╔═══════════════════════════════════════════════════════╗
║ soul-stack v1.0 ║
║ The missing memory layer for n8n automation ║
╠═══════════════════════════════════════════════════════╣
║ soul.py API → http://localhost:8000 ║
║ Jupyter Lab → http://localhost:8888 ║
║ n8n → http://localhost:5678 ║
║ ║
║ Docs: github.com/menonpg/soul-stack ║
╚═══════════════════════════════════════════════════════╝
"
# Start soul.py FastAPI server
echo "[soul-stack] Starting soul.py API on port 8000..."
cd /app/soul_server
uvicorn main:app --host 0.0.0.0 --port 8000 --reload &
SOUL_PID=$!
# Start Jupyter Lab
echo "[soul-stack] Starting Jupyter Lab on port 8888..."
jupyter lab \
--ip=0.0.0.0 \
--port=8888 \
--no-browser \
--notebook-dir=/app/examples \
--ServerApp.token="${JUPYTER_TOKEN}" \
--ServerApp.password="" \
--ServerApp.allow_origin="*" &
JUPYTER_PID=$!
# Start n8n
echo "[soul-stack] Starting n8n on port 5678..."
N8N_USER_FOLDER=/data/n8n \
N8N_BASIC_AUTH_ACTIVE=false \
EXECUTIONS_PROCESS=main \
n8n start &
N8N_PID=$!
echo "[soul-stack] All services started."
echo "[soul-stack] soul.py PID: $SOUL_PID"
echo "[soul-stack] Jupyter PID: $JUPYTER_PID"
echo "[soul-stack] n8n PID: $N8N_PID"
# Wait for any process to exit
wait -n $SOUL_PID $JUPYTER_PID $N8N_PID
echo "[soul-stack] A service exited. Check logs above."