fix: Reset postgres folder rights.
This commit is contained in:
parent
e8d774d39b
commit
21022ad75d
@ -21,7 +21,20 @@ services:
|
|||||||
{% if paperless_db_host == 'postgres' %}
|
{% if paperless_db_host == 'postgres' %}
|
||||||
# Postgres
|
# Postgres
|
||||||
#
|
#
|
||||||
|
postgres-init:
|
||||||
|
image: docker.io/library/postgres:{{ paperless_image_version_db }}
|
||||||
|
volumes:
|
||||||
|
- "{{ paperless_volume_db }}:/data"
|
||||||
|
entrypoint:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
chown -R 70:70 /data
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
depends_on:
|
||||||
|
postgres-init:
|
||||||
|
condition: service_completed_successfully
|
||||||
image: docker.io/library/postgres:{{ paperless_image_version_db }}
|
image: docker.io/library/postgres:{{ paperless_image_version_db }}
|
||||||
env_file:
|
env_file:
|
||||||
- "{{ paperless_setup_path | expanduser }}/env.db.conf"
|
- "{{ paperless_setup_path | expanduser }}/env.db.conf"
|
||||||
|
Loading…
Reference in New Issue
Block a user