Skip to content

Commit

Permalink
Merge pull request #2871 from nextcloud/enh/2506/postgresql
Browse files Browse the repository at this point in the history
make postgresql container read-only
  • Loading branch information
szaimen authored Jul 13, 2023
2 parents 554cb34 + 9fddad5 commit 581456b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containers/postgresql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
4 changes: 4 additions & 0 deletions php/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
],
"networks": [
"nextcloud-aio"
],
"read_only": true,
"tmpfs": [
"/var/run/postgresql"
]
},
{
Expand Down

0 comments on commit 581456b

Please sign in to comment.