Increase shm_size for postgres container (#868)

This prevent VACUUM from failing with error
"could not resize shared memory segment "/PostgreSQL.1038930517" to 67128416 bytes: No space left on device"

This degrades the performances of the database
This commit is contained in:
Nicolas Dorier 2024-01-10 19:48:43 +09:00 committed by GitHub
parent 0ce063e8f0
commit 4e8aa5e5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ services:
postgres:
restart: unless-stopped
container_name: generated_postgres_1
shm_size: 256mb
image: btcpayserver/postgres:13.13
command: [ "-c", "random_page_cost=1.0", "-c", "shared_preload_libraries=pg_stat_statements" ]
environment: