Use configured port for postgres pooler
This commit is contained in:
parent
f07e2688fd
commit
1986460f59
|
@ -115,7 +115,7 @@ RUN set -euxo pipefail &&\
|
||||||
chown paperless:paperless /data /input
|
chown paperless:paperless /data /input
|
||||||
|
|
||||||
COPY root/ /
|
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}
|
EXPOSE ${PAPERLESS_PORT}
|
||||||
USER paperless
|
USER paperless
|
||||||
|
|
|
@ -5,7 +5,7 @@ vim: syntax=hcl
|
||||||
data =<<_EOT
|
data =<<_EOT
|
||||||
[[- if ne .postgres.pooler.engine "none" ]]
|
[[- if ne .postgres.pooler.engine "none" ]]
|
||||||
PAPERLESS_DBHOST=127.0.0.1
|
PAPERLESS_DBHOST=127.0.0.1
|
||||||
PAPERLESS_DBPORT=6432
|
PAPERLESS_DBPORT=[[ .postgres.pooler.port ]]
|
||||||
PAPERLESS_DBUSER=[[ .instance ]]
|
PAPERLESS_DBUSER=[[ .instance ]]
|
||||||
PAPERLESS_DBPASS={{ env "NOMAD_ALLOC_ID" }}
|
PAPERLESS_DBPASS={{ env "NOMAD_ALLOC_ID" }}
|
||||||
[[- else ]]
|
[[- else ]]
|
||||||
|
|
Loading…
Reference in New Issue