mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00: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
|
# Fix default permissions
|
||||||
chown -R postgres:postgres /var/lib/postgresql; \
|
chown -R postgres:postgres /var/lib/postgresql; \
|
||||||
chown -R postgres:postgres /var/run/postgresql; \
|
chown -R postgres:postgres /var/run/postgresql; \
|
||||||
|
chmod -R 777 /var/run/postgresql; \
|
||||||
chown -R postgres:postgres "$PGDATA"; \
|
chown -R postgres:postgres "$PGDATA"; \
|
||||||
\
|
\
|
||||||
mkdir /mnt/data; \
|
mkdir /mnt/data; \
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,10 @@
|
||||||
],
|
],
|
||||||
"networks": [
|
"networks": [
|
||||||
"nextcloud-aio"
|
"nextcloud-aio"
|
||||||
|
],
|
||||||
|
"read_only": true,
|
||||||
|
"tmpfs": [
|
||||||
|
"/var/run/postgresql"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue