Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atualização da imagem docker api #1685

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions participantes/maxsonferovante-python/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ services:
- "5432:5432"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
command: postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=off -c log_min_messages=PANIC -c autovacuum=off
- ./postgresql.conf:/etc/postgresql/postgresql.conf:ro
command: postgres -c config_file=/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rinha"]
interval: 5s
Expand All @@ -25,8 +26,7 @@ services:
memory: "374MB"

api1: &api
image: quay.io/maxsonferovante/rinhabackendmaxsonferovante2024q
build: .
image: maxsonferovante/rinhabackendmaxsonferovante2024q
hostname: api1
environment:
- rinha_database_url=postgres://rinha:rinha@db:5432/rinha
Expand Down
11 changes: 11 additions & 0 deletions participantes/maxsonferovante-python/postgresql.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
listen_addresses = '*'
max_connections = 60
shared_buffers = 90MB
work_mem = 2MB
maintenance_work_mem = 20MB
effective_cache_size = 190MB
fsync = off
full_page_writes = off
synchronous_commit = off
log_min_messages = PANIC
autovacuum = off