-
Notifications
You must be signed in to change notification settings - Fork 925
/
docker-compose.yml
65 lines (60 loc) · 1.41 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.5"
services:
netcore01: &api
image: fabriciocoimbra/rinhabackend2024:latest
hostname: netcore01
environment:
- ConnectionStrings__DefaultConnection = "Não funcionou"
- PORT=8080
ports:
- "8081:8080"
depends_on:
- postgres
deploy:
resources:
limits:
cpus: "0.30"
memory: "120MB"
netcore02:
<<: *api
hostname: netcore02
environment:
- ConnectionStrings__DefaultConnection = "Não funcionou"
- PORT=8080
ports:
- "8080:8080"
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- netcore01
- netcore02
ports:
- "9999:9999"
deploy:
resources:
limits:
cpus: "0.45"
memory: "40MB"
postgres:
image: postgres:latest
hostname: db
environment:
- POSTGRES_PASSWORD=makeLifeSimple
- POSTGRES_USER=admin
- POSTGRES_DB=rinhadb
ports:
- "5432:5432"
volumes:
- ./script.sql:/docker-entrypoint-initdb.d/script.sql
command: 'postgres -c checkpoint_timeout=600 -c max_wal_size=4096 -c max_connections=1000 -c shared_buffers=128MB -c synchronous_commit=off -c fsync=off -c full_page_writes=off'
deploy:
resources:
limits:
cpus: "0.45"
memory: "270MB"
networks:
default:
driver: bridge
name: garnize