-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (75 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
79 lines (75 loc) · 2.13 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
# PostgreSQL database for LangGraph and metadata
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: open_langgraph
ports:
- "6000:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d open_langgraph"]
interval: 5s
timeout: 5s
retries: 5
# Open LangGraph Server
open-langgraph:
build:
context: .
dockerfile: deployments/docker/Dockerfile
ports:
- "${PORT:-8000}:${PORT:-8000}"
environment:
- DATABASE_URL=postgresql+asyncpg://user:password@postgres:5432/open_langgraph
- REDIS_URL=redis://redis:6379/0
- AUTH_TYPE=noop
- DEBUG=true
- PORT=${PORT:-8000}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./open_langgraph.json:/app/open_langgraph.json:ro
- ./graphs:/app/graphs:ro
- ./src:/app/src:ro # for hot reload support of server
- ./auth.py:/app/auth.py:ro
- ./.env:/app/.env:ro
- ./alembic:/app/alembic:ro # for migrations
command: >
sh -c "
echo 'Running database migrations...' &&
alembic upgrade head &&
echo 'Starting Open LangGraph server...' &&
uvicorn src.agent_server.main:app --host 0.0.0.0 --port $${PORT:-8000} --reload
"
# Redis for caching (optional - app works without it)
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# Jaeger for OpenTelemetry tracing (optional - for observability testing)
jaeger:
image: jaegertracing/all-in-one:1.53
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
profiles:
- observability # Only starts with: docker compose --profile observability up
volumes:
postgres_data:
redis_data: