btcpayserver-docker/docker-compose-generator/docker-fragments/postgres.yml
Nicolas Dorier 4e8aa5e5c5
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
2024-01-10 19:48:43 +09:00

17 lines
414 B
YAML

version: "3"
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:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- "postgres_datadir:/var/lib/postgresql/data"
volumes:
postgres_datadir: