-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (47 loc) · 1.06 KB
/
docker-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
version: "3.8"
services:
agent:
build:
context: .
image: ghcr.io/h0n9/msg-lake
environment:
- UNARY_SERVER_INTERCEPTOR_RATE_LIMIT=10
command: ["agent", "--mdns"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
deploy:
replicas: 3
resources:
limits:
cpus: "1.0"
memory: 256M
reservations:
cpus: "1.0"
memory: 256M
nginx:
depends_on:
- agent
image: nginx:1.23.4-alpine3.17
restart: always
volumes:
- ./misc/nginx.conf:/etc/nginx/conf.d/msg-lake.conf:ro
ports:
- 8080-8082:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
deploy:
replicas: 3
client:
depends_on:
- nginx
image: ghcr.io/h0n9/msg-lake
command: ["client", "--host", "nginx:8080"]
deploy:
replicas: 3
loader:
depends_on:
- nginx
image: ghcr.io/h0n9/msg-lake
command: ["tools", "loader", "--interval", "10ms", "--host", "nginx:8080"]
deploy:
replicas: 10