mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-27 17:21:14 +08:00
make postgresql container read-only
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
134905c028
commit
9fddad59b5
2 changed files with 5 additions and 0 deletions
|
@ -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; \
|
||||
|
|
|
@ -96,6 +96,10 @@
|
|||
],
|
||||
"networks": [
|
||||
"nextcloud-aio"
|
||||
],
|
||||
"read_only": true,
|
||||
"tmpfs": [
|
||||
"/var/run/postgresql"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue