diff --git a/postgres/entrypoint.sh b/postgres/entrypoint.sh index 5171ffd..248a0fe 100644 --- a/postgres/entrypoint.sh +++ b/postgres/entrypoint.sh @@ -6,4 +6,7 @@ chown postgres:postgres /cert.pem chmod 0400 /key.pem chown postgres:postgres /key.pem +chown -R postgres:postgres /var/lib/postgresql/data/ +chmod -R 0700 /var/lib/postgresql/data/ + exec "$@"