-
Notifications
You must be signed in to change notification settings - Fork 928
/
docker-compose.yml
64 lines (58 loc) · 1.31 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:
pg_dotnet_database:
container_name: pg_dotnet_database
image: postgres:15.4
volumes:
- ./script.sql:/docker-entrypoint-initdb.d/configure.sql
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=123456
- POSTGRES_USER=postgres
ports:
- "5432:5432"
deploy:
resources:
limits:
cpus: "0.45"
memory: "360MB"
dotnet_bank_api_1:
container_name: dotnet_bank_api_1
image: lipeferreira1609/dev_bank_with_dotnet:0.7
depends_on:
- pg_dotnet_database
deploy:
resources:
limits:
cpus: "0.45"
memory: "90MB"
dotnet_bank_api_2:
container_name: dotnet_bank_api_2
image: lipeferreira1609/dev_bank_with_dotnet:0.7
depends_on:
- pg_dotnet_database
- dotnet_bank_api_1
deploy:
resources:
limits:
cpus: "0.45"
memory: "90MB"
dotnet_nginx:
container_name: dotnet_nginx
image: nginx:latest
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- dotnet_bank_api_1
- dotnet_bank_api_2
deploy:
resources:
limits:
cpus: "0.15"
memory: "10MB"
networks:
default:
driver: bridge
name: rinha-backend-2024