feat: ajusta limitis
This commit is contained in:
parent
1f0847569d
commit
53c5d2ac5b
@ -1,6 +1,6 @@
|
||||
services:
|
||||
api1:
|
||||
image: payment2:latest
|
||||
image: jos3duardo/rinha-backend-2025:v1.0
|
||||
restart: always
|
||||
networks:
|
||||
- backend
|
||||
@ -11,11 +11,11 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.3'
|
||||
memory: '64MB'
|
||||
cpus: "0.3"
|
||||
memory: "67MB"
|
||||
|
||||
api2:
|
||||
image: payment2:latest
|
||||
image: jos3duardo/rinha-backend-2025:v1.0
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
@ -26,11 +26,11 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.3'
|
||||
memory: '64MB'
|
||||
cpus: "0.3"
|
||||
memory: "67MB"
|
||||
|
||||
api3:
|
||||
image: payment2:latest
|
||||
image: jos3duardo/rinha-backend-2025:v1.0
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
@ -41,14 +41,14 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.3'
|
||||
memory: '64MB'
|
||||
cpus: "0.3"
|
||||
memory: "67MB"
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
restart: always
|
||||
ports:
|
||||
- '9999:9999'
|
||||
- "9999:9999"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
networks:
|
||||
@ -60,22 +60,22 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.15'
|
||||
memory: '9MB'
|
||||
cpus: "0.10"
|
||||
memory: "9MB"
|
||||
|
||||
redis:
|
||||
image: redis:7.2-alpine
|
||||
restart: always
|
||||
platform: linux/amd64
|
||||
ports:
|
||||
- '6379:6379'
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- backend
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.40'
|
||||
memory: '25MB'
|
||||
cpus: "0.30"
|
||||
memory: "15MB"
|
||||
|
||||
database:
|
||||
image: postgres:17-alpine
|
||||
@ -83,15 +83,15 @@ services:
|
||||
command: postgres -c checkpoint_timeout=600 -c max_wal_size=4096 -c synchronous_commit=0 -c fsync=0 -c full_page_writes=0
|
||||
platform: linux/amd64
|
||||
ports:
|
||||
- '5432:5432'
|
||||
- "5432:5432"
|
||||
environment:
|
||||
- POSTGRES_DB=payment
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres_pwd
|
||||
volumes:
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 3s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
@ -100,8 +100,8 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.25'
|
||||
memory: '124MB'
|
||||
cpus: "0.20"
|
||||
memory: "125MB"
|
||||
|
||||
networks:
|
||||
backend:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user