-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 924 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
50
51
services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- server1
- server2
ports:
- 9999:9999
restart: always
deploy:
resources:
limits:
cpus: "0.22"
memory: "30MB"
server1: &server
hostname: server1
image: jazielloureiro/rinha-backend-2024-q1-go:latest
env_file:
- ./.env
depends_on:
- postgres
restart: always
deploy:
resources:
limits:
cpus: "0.33"
memory: "50MB"
server2:
<<: *server
hostname: server2
postgres:
image: postgres:latest
volumes:
- postgres:/var/lib/postgresql/data
- ./sql/:/docker-entrypoint-initdb.d/
env_file:
- ./.env
restart: always
deploy:
resources:
limits:
cpus: "0.64"
memory: "420MB"
volumes:
postgres: