From 53c5d2ac5b698ce755bba007544084785e98339f Mon Sep 17 00:00:00 2001 From: jos3duardo Date: Sun, 17 Aug 2025 22:32:13 -0400 Subject: [PATCH] feat: ajusta limitis --- docker-compose.yml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8564156..c127ffb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: