-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
155 lines (142 loc) · 3.83 KB
/
docker-compose.yml
File metadata and controls
155 lines (142 loc) · 3.83 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: nodejs-services-under-load-lab
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
deal-service:
build: .
command: ["node", "services/deal-service/server.js"]
environment:
- PORT=3001
ports:
- "3001:3001"
price-service:
build: .
command: ["node", "services/price-service/server.js"]
environment:
- PORT=3002
ports:
- "3002:3002"
inventory-service:
build: .
command: ["node", "services/inventory-service/server.js"]
environment:
- PORT=3003
ports:
- "3003:3003"
rating-service-a:
build: .
command: ["node", "services/rating-service/server.js"]
environment:
- PORT=3004
- INSTANCE_ID=a
ports:
- "3004:3004"
rating-service-b:
build: .
command: ["node", "services/rating-service/server.js"]
environment:
- PORT=3006
- INSTANCE_ID=b
ports:
- "3006:3006"
rating-lb:
build: .
command: ["node", "services/rating-lb/server.js"]
environment:
- PORT=3014
- LB_TARGETS=http://rating-service-a:3004,http://rating-service-b:3006
ports:
- "3014:3014"
depends_on:
- rating-service-a
- rating-service-b
merchant-service:
build: .
command: ["node", "services/merchant-service/server.js"]
environment:
- PORT=3005
ports:
- "3005:3005"
experience-api:
build: .
command: ["node", "services/experience-api/server.js"]
environment:
- PORT=3000
- REDIS_URL=redis://redis:6379
- DEAL_SERVICE_URL=http://deal-service:3001
- PRICE_SERVICE_URL=http://price-service:3002
- INVENTORY_SERVICE_URL=http://inventory-service:3003
- RATING_SERVICE_URL=http://rating-lb:3014
- MERCHANT_SERVICE_URL=http://merchant-service:3005
- ENRICHMENT_CONCURRENCY=220
- ENRICHMENT_QUEUE_THRESHOLD=1000
- HYBRID_READ_MODEL_ENABLED=true
- READ_MODEL_STALE_MS=180000
- READ_MODEL_TTL_SECONDS=300
- READ_MODEL_LIVE_FALLBACK_MAX=1
- READ_MODEL_REFRESH_COOLDOWN_MS=10000
- BASE_DEALS_CACHE_TTL_MS=5000
- OTEL_SERVICE_NAME=experience-api
ports:
- "3000:3000"
depends_on:
- redis
- deal-service
- price-service
- inventory-service
- rating-lb
- merchant-service
enrichment-worker:
build: .
command: ["node", "workers/enrichment-worker.js"]
environment:
- REDIS_URL=redis://redis:6379
- DEAL_SERVICE_URL=http://deal-service:3001
- PRICE_SERVICE_URL=http://price-service:3002
- INVENTORY_SERVICE_URL=http://inventory-service:3003
- RATING_SERVICE_URL=http://rating-lb:3014
- MERCHANT_SERVICE_URL=http://merchant-service:3005
- ENRICHMENT_WORKER_CONCURRENCY=120
- READ_MODEL_TTL_SECONDS=300
- OTEL_SERVICE_NAME=enrichment-worker
depends_on:
- redis
- deal-service
- price-service
- inventory-service
- rating-lb
- merchant-service
critical-worker:
build: .
command: ["node", "workers/critical-worker.js"]
environment:
- REDIS_URL=redis://redis:6379
- CRITICAL_WORKER_CONCURRENCY=30
- OTEL_SERVICE_NAME=critical-worker
depends_on:
- redis
slo-dashboard:
build: .
command: ["node", "services/slo-dashboard/server.js"]
environment:
- PORT=3100
- EXPERIENCE_METRICS_URL=http://experience-api:3000/metrics
- EXPERIENCE_API_URL=http://experience-api:3000
- RATING_LB_STATS_URL=http://rating-lb:3014/stats
- HYBRID_ASSUMED_LIMIT=20
- OTEL_SERVICE_NAME=slo-dashboard
ports:
- "3100:3100"
depends_on:
- experience-api
- rating-lb