forked from langwatch/langwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
128 lines (121 loc) · 3.32 KB
/
compose.dev.yml
File metadata and controls
128 lines (121 loc) · 3.32 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
127
128
version: "3.8"
services:
app:
environment:
SKIP_ENV_VALIDATION: true
DISABLE_PII_REDACTION: true
DATABASE_URL: postgresql://prisma:prisma@postgres:5432/mydb?schema=mydb
ELASTICSEARCH_NODE_URL: http://opensearch:9200
REDIS_URL: redis://redis:6379
LANGWATCH_NLP_SERVICE: http://langwatch_nlp:5561
LANGEVALS_ENDPOINT: http://langevals:5562
env_file:
- langwatch/.env
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "5560:5560"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
opensearch:
condition: service_healthy
langwatch_nlp:
build:
context: ./langwatch_nlp
env_file:
- langwatch/.env
ports:
- "5561:5561"
restart: 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
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
opensearch:
image: opensearchproject/opensearch:2.17.1
environment:
- discovery.type=single-node
- DISABLE_SECURITY_PLUGIN=true
# Disable specific plugins
- "plugins.anomaly_detection.enabled=false"
- "plugins.flow_framework.enabled=false"
- "plugins.security_analytics.ioc_finding_enabled=false"
- "plugins.sql.enabled=false"
- "plugins.rollup.enabled=false"
# Performance settings
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m -XX:+UseG1GC -XX:-UseSerialGC -XX:G1ReservePercent=25 -XX:+AlwaysPreTouch -XX:InitiatingHeapOccupancyPercent=30"
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "bootstrap.memory_lock=false" # Changed from true to avoid memory locking warnings
# Disk settings
- "cluster.routing.allocation.disk.watermark.low=95%"
- "cluster.routing.allocation.disk.watermark.high=96%"
- "cluster.routing.allocation.disk.watermark.flood_stage=97%"
- "cluster.info.update.interval=1m"
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=Some-random-password-which-is-greater-than-16-chars-long~
# System limits
- "node.store.allow_mmap=false"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
- "9600:9600"
volumes:
- opensearch-data:/usr/share/opensearch/data
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200 || exit 1"]
interval: 30s
timeout: 30s
retries: 3
start_period: 40s
deploy:
resources:
limits:
memory: 512m
cpus: "1.0"
restart: always
volumes:
db-data:
redis-data:
opensearch-data: