-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1013 Bytes
/
docker-compose.yml
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
services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- api01
- api02
ports:
- "9999:9999"
deploy:
resources:
limits:
cpus: "0.18"
memory: "30MB"
api01: &api
image: gmorum/rinha-2024q1:ktor-mongo-v1-native
ports:
- "8070:8080"
environment:
- INIT_DB=true
- MONGO_CONNECTION_STRING=mongodb://mongo:27017
depends_on:
- mongo
deploy:
resources:
limits:
cpus: "0.52"
memory: "120MB"
api02:
<<: *api
depends_on:
- mongo
environment:
- INIT_DB=false
- MONGO_CONNECTION_STRING=mongodb://mongo:27017
ports:
- "8060:8080"
mongo:
image: mongo:7.0.3
ports:
- "27017:27017"
command: --quiet --logpath /dev/null
deploy:
resources:
limits:
cpus: "0.28"
memory: "280MB"