فهرست منبع

feat: default to use data checksums in PostgreSQL

There is little reason not to use PostgreSQL data checksums [1] and they
can greatly help to ensure data integrity.

[1] https://www.postgresql.org/docs/current/checksums.html
Christoph Schug 2 سال پیش
والد
کامیت
89dd1f5a08
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      docker-compose/postgres/docker-compose.yaml

+ 1 - 0
docker-compose/postgres/docker-compose.yaml

@@ -5,6 +5,7 @@ services:
   postgres:
     image: docker.io/library/postgres:16.2
     environment:
+      - POSTGRES_INITDB_ARGS=${POSTGRES_INITDB_ARGS---data-checksums}
       - POSTGRES_USER=${POSTGRES_USER}
       - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
       # (Optional) when creating a new database