-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
Β·35 lines (29 loc) Β· 955 Bytes
/
Copy pathstart.sh
File metadata and controls
executable file
Β·35 lines (29 loc) Β· 955 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
30
31
32
33
34
35
#!/bin/bash
set -e
echo "π Starting mem0-server..."
if [ ! -f .env ]; then
echo "β οΈ .env file not found. Copying from .env.example..."
cp .env.example .env
echo "π Please edit .env and set your OPENAI_API_KEY before running again."
exit 1
fi
echo "π Creating data directories..."
mkdir -p data/postgres data/mem0
echo "π³ Starting Docker services..."
docker-compose up -d --build
echo ""
echo "β
Services started!"
echo ""
echo "π Service Status:"
docker-compose ps
echo ""
echo "π API Access:"
echo " Base URL: http://localhost:$(grep MEM0_PORT .env | cut -d= -f2 || echo 8000)"
echo " Docs: http://localhost:$(grep MEM0_PORT .env | cut -d= -f2 || echo 8000)/docs"
echo " Health: http://localhost:$(grep MEM0_PORT .env | cut -d= -f2 || echo 8000)/health"
echo ""
echo "π View logs:"
echo " docker-compose logs -f mem0-server"
echo ""
echo "π Stop services:"
echo " docker-compose down"