-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcompose.yaml
61 lines (56 loc) · 1.35 KB
/
compose.yaml
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
version: "3.8"
services:
langgraph-redis:
image: redis:6
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 1s
retries: 5
langgraph-postgres:
image: postgres:16
ports:
- "5433:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- langgraph-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
start_period: 10s
timeout: 1s
retries: 5
interval: 5s
langgraph-api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8123:8000"
volumes:
- type: bind
source: ./src
target: /deps/react-agents/src
command: ["langgraph", "dev", "--port", "8000"]
environment:
REDIS_URI: redis://langgraph-redis:6379
LANGSMITH_API_KEY: ${LANGSMITH_API_KEY}
DATABASE_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable
cloudflared:
image: cloudflare/cloudflared:latest
environment:
TUNNEL_URL: http://langgraph-api:8123
profiles:
- tunnel
command: "tunnel --no-autoupdate"
volumes:
- ./cloudflared:/etc/cloudflared
depends_on:
- langgraph-api
volumes:
langgraph-data:
driver: local
cloudflared:
driver: local