forked from langwatch/langwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
126 lines (119 loc) · 3.19 KB
/
Copy pathcompose.yml
File metadata and controls
126 lines (119 loc) · 3.19 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
services:
app:
image: langwatch/langwatch:latest
environment:
SKIP_ENV_VALIDATION: true
DATABASE_URL: postgresql://prisma:prisma@postgres:5432/mydb?schema=mydb
CLICKHOUSE_URL: http://default:langwatch@clickhouse:8123/langwatch
REDIS_URL: redis://redis:6379
LANGWATCH_NLP_SERVICE: http://langwatch_nlp:5561
LANGEVALS_ENDPOINT: http://langevals:5562
LANGWATCH_ENDPOINT: http://app:5560
INSTALL_METHOD: docker
NODE_ENV: production
env_file:
- langwatch/.env
pull_policy: always
ports:
- "5560:5560"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
clickhouse:
condition: service_healthy
workers:
image: langwatch/langwatch:latest
command: ["pnpm", "run", "start:workers"]
working_dir: /app/langwatch
environment:
SKIP_ENV_VALIDATION: true
DATABASE_URL: postgresql://prisma:prisma@postgres:5432/mydb?schema=mydb
CLICKHOUSE_URL: http://default:langwatch@clickhouse:8123/langwatch
REDIS_URL: redis://redis:6379
LANGWATCH_NLP_SERVICE: http://langwatch_nlp:5561
LANGEVALS_ENDPOINT: http://langevals:5562
LANGWATCH_ENDPOINT: http://app:5560
NODE_ENV: production
env_file:
- langwatch/.env
pull_policy: always
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
clickhouse:
condition: service_healthy
restart: always
# nlpgo — the Go NLP engine. langwatch/langwatch_nlp is now a static Go
# binary (Dockerfile.langwatch_nlp); it still binds :5561 and reads
# LANGWATCH_ENDPOINT for evaluator + agent-workflow callbacks.
langwatch_nlp:
image: langwatch/langwatch_nlp:latest
env_file:
- langwatch/.env
ports:
- "5561:5561"
restart: always
pull_policy: always
environment:
- LANGWATCH_ENDPOINT=http://app:5560
langevals:
image: langwatch/langevals:latest
ports:
- "5562:5562"
restart: always
pull_policy: always
environment:
- DISABLE_EVALUATORS_PRELOAD=true
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_DB: mydb
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U prisma -d mydb"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:alpine
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
clickhouse:
image: langwatch/clickhouse-serverless:0.2.0
environment:
CLICKHOUSE_PASSWORD: langwatch
ports:
- "8123:8123"
volumes:
- clickhouse-data:/var/lib/clickhouse
deploy:
resources:
limits:
memory: 2g
cpus: "1.0"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8123/ping || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
restart: always
volumes:
db-data:
redis-data:
clickhouse-data: