forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (59 loc) · 1.47 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
version: '3.8'
services:
pg_dotnet_mnapi_database:
container_name: pg_dotnet_mnapi_database
image: postgres:latest
volumes:
- ./script.sql:/docker-entrypoint-initdb.d/configure.sql
command: 'postgres -c shared_buffers=256MB -c fsync=off -c full_page_writes=off -c max_connections=230'
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=123456
- POSTGRES_USER=postgres
ports:
- "5432:5432"
deploy:
resources:
limits:
cpus: "0.40"
memory: "250MB"
dotnet_bank_mnapi_1:
container_name: dotnet_bank_mnapi_1
image: lipeferreira1609/dev_bank_with_dotnet_mn_api:2.2
depends_on:
- pg_dotnet_mnapi_database
deploy:
resources:
limits:
cpus: "0.40"
memory: "95MB"
dotnet_bank_mnapi_2:
container_name: dotnet_bank_mnapi_2
image: lipeferreira1609/dev_bank_with_dotnet_mn_api:2.2
depends_on:
- pg_dotnet_mnapi_database
- dotnet_bank_mnapi_1
deploy:
resources:
limits:
cpus: "0.35"
memory: "95MB"
dotnet_nginx:
container_name: dotnet_nginx
image: nginx:latest
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- dotnet_bank_mnapi_1
- dotnet_bank_mnapi_2
deploy:
resources:
limits:
cpus: "0.35"
memory: "110MB"
networks:
default:
driver: bridge
name: rinha-backend-2024