Use configured port for postgres pooler

This commit is contained in:
Daniel Berteaud 2024-01-19 15:13:14 +01:00
parent f07e2688fd
commit 1986460f59
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ RUN set -euxo pipefail &&\
chown paperless:paperless /data /input
COPY root/ /
COPY --from=danielberteaud/alpine:24.1-5 /usr/local/bin/minit /usr/local/bin/minit
COPY --from=danielberteaud/alpine:24.1-6 /usr/local/bin/minit /usr/local/bin/minit
EXPOSE ${PAPERLESS_PORT}
USER paperless

View File

@ -5,7 +5,7 @@ vim: syntax=hcl
data =<<_EOT
[[- if ne .postgres.pooler.engine "none" ]]
PAPERLESS_DBHOST=127.0.0.1
PAPERLESS_DBPORT=6432
PAPERLESS_DBPORT=[[ .postgres.pooler.port ]]
PAPERLESS_DBUSER=[[ .instance ]]
PAPERLESS_DBPASS={{ env "NOMAD_ALLOC_ID" }}
[[- else ]]