-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
81 lines (81 loc) · 1.88 KB
/
compose.yaml
File metadata and controls
81 lines (81 loc) · 1.88 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
80
81
volumes:
langgraph-data:
driver: local
services:
langgraph-redis:
image: redis:6
healthcheck:
test: 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: pg_isready -U postgres
start_period: 10s
timeout: 1s
retries: 5
interval: 5s
langgraph-api:
image: chatbot:latest
ports:
- "8123:8000"
depends_on:
langgraph-redis:
condition: service_healthy
langgraph-postgres:
condition: service_healthy
env_file:
- .env
environment:
CONTAINER_PORT: 8000
REDIS_URI: redis://langgraph-redis:6379
DATABASE_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable
healthcheck:
test: [ "CMD", "python", "src/chatbot/healthcheck.py" ]
interval: 10s
timeout: 1s
retries: 5
start_period: 10s
api:
image: chatbot-api:latest
ports:
- "8080:8080"
environment:
CONTAINER_PORT: 8080
LANGGRAPH_API_URI: http://langgraph-api:8000
depends_on:
langgraph-api:
condition: service_healthy
healthcheck:
test: [ "CMD", "python", "api/healthcheck.py" ]
start_period: 3s
timeout: 1s
retries: 5
interval: 5s
ui:
image: chatbot-ui:latest
ports:
- "3000:3000"
environment:
HOSTNAME: 0.0.0.0
CONTAINER_PORT: 3000
API_URL: http://api:8080
depends_on:
api:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/health" ]
start_period: 3s
timeout: 1s
retries: 5
interval: 5s