make postgresql container read-only

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-06-26 16:31:32 +02:00
parent 134905c028
commit 9fddad59b5
2 changed files with 5 additions and 0 deletions

View file

@ -22,6 +22,7 @@ RUN set -ex; \
# Fix default permissions
chown -R postgres:postgres /var/lib/postgresql; \
chown -R postgres:postgres /var/run/postgresql; \
chmod -R 777 /var/run/postgresql; \
chown -R postgres:postgres "$PGDATA"; \
\
mkdir /mnt/data; \

View file

@ -96,6 +96,10 @@
],
"networks": [
"nextcloud-aio"
],
"read_only": true,
"tmpfs": [
"/var/run/postgresql"
]
},
{