-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yaml
45 lines (41 loc) · 930 Bytes
/
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
version: "3.5"
services:
api01: &api
image: 00wesley/rinha-2024-golang:latest
deploy:
resources:
limits:
cpus: "0.35"
memory: "45MB"
api02:
<<: *api
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9999:9999"
depends_on:
- api01
- api02
deploy:
resources:
limits:
cpus: "0.25"
memory: "40MB"
db:
image: postgres:alpine
hostname: db
environment:
- POSTGRES_PASSWORD=db
- POSTGRES_USER=db
- POSTGRES_DB=db
volumes:
- ./db.sql:/docker-entrypoint-initdb.d/db.sql
- ./postgresql.conf:/docker-entrypoint-initdb.d/postgresql.config_file
command: postgres -c config_file=/docker-entrypoint-initdb.d/postgresql.config_file
deploy:
resources:
limits:
cpus: "0.55"
memory: "420MB"