fix: Reset postgres folder rights.

This commit is contained in:
Laur Ivan 2023-02-14 01:18:50 +01:00
parent e8d774d39b
commit 21022ad75d

View File

@ -21,7 +21,20 @@ services:
{% if paperless_db_host == '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:
depends_on:
postgres-init:
condition: service_completed_successfully
image: docker.io/library/postgres:{{ paperless_image_version_db }}
env_file:
- "{{ paperless_setup_path | expanduser }}/env.db.conf"