-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yaml
49 lines (45 loc) · 1.16 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
49
version: "3.5"
services:
webapi01: &webapi
network_mode: "host"
image: pedroter7/rinha-de-backend-2024-q1:webapi-latest
hostname: webapi01
environment:
- CUSTOMCONNSTR_MariaDbRinha=Server=127.0.0.1;Port=9996;User Id=rinha_user;Password=pwd;Database=rinha_2024_q1
- ASPNETCORE_HTTP_PORTS=9998
depends_on:
- db
deploy:
resources:
limits:
cpus: "0.4"
memory: "110MB"
webapi02:
network_mode: "host"
<<: *webapi
hostname: webapi02
environment:
- CUSTOMCONNSTR_MariaDbRinha=Server=127.0.0.1;Port=9996;User Id=rinha_user;Password=pwd;Database=rinha_2024_q1
- ASPNETCORE_HTTP_PORTS=9997
loadbalancer:
network_mode: "host"
image: pedroter7/rinha-de-backend-2024-q1:loadbalancer-latest
depends_on:
- webapi01
- webapi02
deploy:
resources:
limits:
cpus: "0.2"
memory: "20MB"
db:
network_mode: "host"
image: pedroter7/rinha-de-backend-2024-q1:db-latest
hostname: db
environment:
- MARIADB_ROOT_PASSWORD=pwd
deploy:
resources:
limits:
cpus: "0.5"
memory: "310MB"