forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.4 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
version: "3.8"
services:
drogon_pg_database:
container_name: drogon_pg_database
image: postgres:15.4
volumes:
- ./configure.sql:/docker-entrypoint-initdb.d/configure.sql
command: "postgres -c shared_buffers=256MB -c fsync=off -c full_page_writes=off -c max_connections=160"
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=123456
- POSTGRES_USER=postgres
ports:
- "5432:5432"
deploy:
resources:
limits:
cpus: "0.45"
memory: "390MB"
drogon_api_1:
container_name: drogon_api_1
image: lipeferreira1609/dev_bank_with_drogon_framework:2.80
depends_on:
- drogon_pg_database
deploy:
resources:
limits:
cpus: "0.35"
memory: "40MB"
drogon_api_2:
container_name: drogon_api_2
image: lipeferreira1609/dev_bank_with_drogon_framework:2.80
depends_on:
- drogon_pg_database
- drogon_api_1
deploy:
resources:
limits:
cpus: "0.35"
memory: "40MB"
drogon_nginx:
container_name: drogon_nginx
image: nginx:latest
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- drogon_api_1
- drogon_api_2
deploy:
resources:
limits:
cpus: "0.35"
memory: "80MB"
networks:
default:
driver: bridge
name: rinha-backend-2024