forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.31 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
version: "3.9"
services:
database:
image: murilochianfa/rinha-crebito-cpp-database:latest
container_name: rinha-database
hostname: database
restart: unless-stopped
pull_policy: always
network_mode: host
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.6"
memory: "400MB"
app-northbound: &app
image: murilochianfa/rinha-crebito-cpp-app:latest
container_name: rinha-app-northbound
hostname: app-northbound
restart: unless-stopped
pull_policy: always
environment:
- API_PORT=8848
network_mode: host
depends_on:
- database
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.3"
memory: "50MB"
app-southbound:
<<: *app
container_name: rinha-app-southbound
hostname: api-southbound
environment:
- API_PORT=8849
loadbalancer:
image: murilochianfa/rinha-crebito-cpp-loadbalancer:latest
container_name: rinha-loadbalancer
hostname: loadbalancer
restart: unless-stopped
pull_policy: always
network_mode: host
depends_on:
- app-northbound
- app-southbound
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.3"
memory: "50MB"