-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
65 lines (62 loc) · 1.21 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: "3.8"
services:
web01:
image: felipealcantara/rinha-de-backend-2024:1.0.1
environment:
GIN_MODE: release
APP_PORT: "8080"
DROP_DB_ON_START: "true"
expose:
- "8080"
depends_on:
- db
network_mode: host
deploy:
resources:
limits:
cpus: "0.28"
memory: "20MB"
web02:
image: felipealcantara/rinha-de-backend-2024:1.0.1
environment:
GIN_MODE: release
APP_PORT: "8081"
DROP_DB_ON_START: "true"
expose:
- "8081"
network_mode: host
depends_on:
- db
deploy:
resources:
limits:
cpus: "0.28"
memory: "20MB"
lb:
image: felipealcantara/rinha-de-backend-2024-lb:1.0.1
environment:
APP_PORT: 9999
APP_BACKENDS: "127.0.0.1:8080,127.0.0.1:8081"
expose:
- "9999"
depends_on:
- web01
- web02
- db
network_mode: host
deploy:
resources:
limits:
cpus: "0.42"
memory: "20MB"
db:
image: mongo:7.0.5
command: mongod --quiet --logpath /dev/null
expose:
- "27017"
network_mode: host
deploy:
resources:
limits:
cpus: "0.40"
memory: "180MB"