-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (63 loc) · 1.42 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
66
version: "3.9"
services:
database:
build:
context: database
dockerfile: Dockerfile
image: murilochianfa/rinha-crebito-cpp-database:latest
container_name: rinha-database
hostname: database
restart: unless-stopped
network_mode: host
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.6"
memory: "400MB"
app-northbound: &app
build:
context: app
dockerfile: Dockerfile
image: murilochianfa/rinha-crebito-cpp-app:latest
container_name: rinha-app-northbound
hostname: app-northbound
restart: unless-stopped
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:
build:
context: loadbalancer
dockerfile: Dockerfile
image: murilochianfa/rinha-crebito-cpp-loadbalancer:latest
container_name: rinha-loadbalancer
hostname: loadbalancer
restart: unless-stopped
network_mode: host
depends_on:
- app-northbound
- app-southbound
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.3"
memory: "50MB"