Merge pull request #2871 from nextcloud/enh/2506/postgresql

make postgresql container read-only
This commit is contained in:
Simon L
2023-07-13 12:13:56 +02:00
committed by GitHub
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"
]
},
{