Skip to content

Commit

Permalink
Increased docker memory for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Jan 24, 2025
1 parent 66bb500 commit a54d6c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
POSTGRES_USER: ${PSQL_USERNAME}
POSTGRES_PASSWORD: ${PSQL_PASSWORD}
POSTGRES_DB: ${PSQL_DATABASE}
shm_size: '1g'
volumes:
- "agr-literature-pg-data:/var/lib/postgresql/data"
- "./postgresql.conf:/etc/postgresql.conf"
Expand Down
2 changes: 1 addition & 1 deletion postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ max_connections = 100 # (change requires restart)

# - Memory -

shared_buffers = 128MB # min 128kB
shared_buffers = 256MB # min 128kB
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)
Expand Down

0 comments on commit a54d6c5

Please sign in to comment.