-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 930 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
name: "rinha"
services:
loadbalancer:
image: "rafaelrcmrg/rinha-2024-q1-loadbalancer"
depends_on:
- server1
- server2
network_mode: "host"
restart: unless-stopped
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.25"
memory: 50M
server1: &server
image: "rafaelrcmrg/rinha-2024-q1-server"
depends_on:
- database
network_mode: "host"
restart: unless-stopped
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.25"
memory: 50M
server2:
<<: *server
environment:
- TCP_PORT=8081
- UDP_PORT=4041
database:
image: "rafaelrcmrg/rinha-2024-q1-database"
network_mode: "host"
restart: unless-stopped
stdin_open: false
tty: false
deploy:
resources:
limits:
cpus: "0.25"
memory: 50M