mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-02-18 03:20:47 +01:00
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
This commit is contained in:
parent
edf466c7c9
commit
89dd1f5a08
@ -5,6 +5,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: docker.io/library/postgres:16.2
|
image: docker.io/library/postgres:16.2
|
||||||
environment:
|
environment:
|
||||||
|
- POSTGRES_INITDB_ARGS=${POSTGRES_INITDB_ARGS---data-checksums}
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||||
# (Optional) when creating a new database
|
# (Optional) when creating a new database
|
||||||
|
Loading…
Reference in New Issue
Block a user