Set local pg port if pg container is up.

This commit is contained in:
Laur Ivan 2022-10-07 16:59:16 +02:00
parent a659a3c52a
commit 47e617c4eb

View File

@ -1,6 +1,10 @@
PAPERLESS_DBHOST={{ paperless_db_host }}
PAPERLESS_DBSCHEMA={{ paperless_db_host }}
{% if paperless_db_host == 'postgres' %}
PAPERLESS_DBPORT=5432
{% else %}
PAPERLESS_DBPORT={{ paperless_db_port }}
{% endif %}
PAPERLESS_DBUSER={{ paperless_db_user }}
PAPERLESS_DBPASS={{ paperless_db_password }}