From 1a6253ee4cf61d8c51d416a3572602c532758136 Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 9 Feb 2022 21:59:51 +0100 Subject: [PATCH] fix postgresql container Signed-off-by: szaimen --- Containers/postgresql/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Containers/postgresql/Dockerfile b/Containers/postgresql/Dockerfile index 7446e337..a41f4ed4 100644 --- a/Containers/postgresql/Dockerfile +++ b/Containers/postgresql/Dockerfile @@ -10,6 +10,12 @@ RUN set -ex; \ addgroup -g 999 -S postgres; \ adduser -u 999 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres +# Fix default permissions +RUN set -ex; \ + chown -R postgres:postgres /var/lib/postgresql; \ + chown -R postgres:postgres /var/run/postgresql; \ + chown -R postgres:postgres "$PGDATA" + COPY start.sh /usr/bin/ RUN chmod +x /usr/bin/start.sh