forked from bioshazard/workstacean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.94 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.94 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
51
52
53
54
services:
workstacean:
build:
context: .
target: dev
restart: unless-stopped
env_file: .env
environment:
- WORKSPACE_DIR=/workspace
- DATA_DIR=/data
- TZ=America/New_York
- GRAPHITI_URL=http://graphiti:8000
ports:
- "8080:8080"
volumes:
- workspace:/workspace
- data:/data
- ./:/usr/src/app
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
graphiti:
condition: service_healthy
# ── Graphiti — temporal user memory ──────────────────────────────────────────
# Stores conversation episodes and extracts temporal facts per user.
# In production, graphiti runs from homelab-iac/stacks/ai against the
# shared neo4j in homelab-iac/stacks/infra. This compose entry is for
# local development; docker-compose.graphiti-standalone.yml provides a
# fully self-contained alternative (own neo4j) for laptops offline.
graphiti:
image: zepai/graphiti:latest
restart: unless-stopped
environment:
# OpenAI-compatible endpoint — uses local LiteLLM gateway in production
- OPENAI_API_KEY=${OPENAI_API_KEY:-sk-dummy}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1}
- MODEL_NAME=${GRAPHITI_MODEL:-gpt-4o-mini}
- EMBEDDING_MODEL_NAME=${GRAPHITI_EMBEDDING_MODEL:-text-embedding-3-small}
# Neo4j — production uses the shared instance in homelab-iac/stacks/infra;
# override NEO4J_URI for local standalone dev (see graphiti-standalone.yml).
- NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687}
- NEO4J_USER=${NEO4J_USER:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-password}
- PORT=8000
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8000/healthcheck || exit 1"]
interval: 10s
timeout: 5s
retries: 6
start_period: 30s
volumes:
data:
workspace: