Skip to content

Commit

Permalink
docker-compose fix and readme disclaimer.
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuslao committed Feb 20, 2024
1 parent 6380526 commit 1bd0128
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# api-rinha-backend-2024-01


## Este repositório não representa um código para ambiente de produção, apenas uma submissão sem compromisso para o [Rinha Backend 2024 q1](https://github.com/zanfranceschi/rinha-de-backend-2024-q1)
8 changes: 3 additions & 5 deletions participacao/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: api-rinha:snapshot
build:
dockerfile: Dockerfile
context: .
context: ../
hostname: api01
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--reload"]
ulimits:
Expand All @@ -28,7 +28,7 @@ services:
memory: "130MB"

api02:
<<: *api
<<: *api
hostname: api02

nginx:
Expand All @@ -53,7 +53,7 @@ services:
db:
image: postgres:latest
hostname: db
command: 'postgres -c max_connections=100 -c work_mem=4MB -c maintenance_work_mem=16MB -c effective_cache_size=128MB -c checkpoint_completion_target=0.5 -c shared_buffers=64MB -c synchronous_commit=off -c fsync=off -c full_page_writes=off -c checkpoint_timeout=600 -c max_wal_size=4096'
command: ['postgres', '-c', 'max_connections=100', '-c', 'work_mem=4MB', '-c', 'maintenance_work_mem=16MB', '-c', 'effective_cache_size=128MB', '-c', 'checkpoint_completion_target=0.5', '-c', 'shared_buffers=64MB', '-c', 'synchronous_commit=off', '-c', 'fsync=off', '-c', 'full_page_writes=off', '-c', 'checkpoint_timeout=600', '-c', 'max_wal_size=4096']
environment:
- POSTGRES_PASSWORD=123
- POSTGRES_USER=admin
Expand All @@ -72,7 +72,6 @@ services:
cpus: "0.4"
memory: "240MB"


adminer:
image: dpage/pgadmin4:latest
environment:
Expand All @@ -86,4 +85,3 @@ services:
networks:
default:
driver: bridge
name: rinha-nginx-2024q1

0 comments on commit 1bd0128

Please sign in to comment.