Closed dpittner closed 2 years ago
I actually meant to update the docs about that recently. PACT_BROKER_DATABASE_PORT
is not supported for the DiUS image as it's hardcoded in the passenger docker image. If you want to change the port, you'll need to use pactfoundation/pact-broker
. You could try using PASSENGER_PORT
but I haven't tried it myself, so I don't know if it will work https://www.phusionpassenger.com/library/config/standalone/intro.html
Oh! Apologies! I got confused with PACT_BROKER_PORT
! Let me have a look.
Fixed in 2.89.0 of the Pact Broker gem. Please update to 2.89.0.0
Thanks you very much!
Pre issue-raising checklist
I have already (please mark the applicable with an
x
):Software versions
Expected behaviour
PACT_BROKER_DATABASE_PORT is taken into account when running broker as in previous version.
Actual behaviour
PACT_BROKER_DATABASE_PORT env variable is ignored and default port used.
Steps to reproduce
Configure broker to use a non-default PG DB port via env variable (as documented). Logs will show 5432 is used as port.
Relevent log files
Probably related to this change: https://github.com/DiUS/pact_broker-docker/commit/59d23d9#diff-ffeeef8a141c9a892332934fa7599484bd11b96a3eada3a0557117ff524f86e5L144 Please ensure you set logging to
DEBUG
and attach any relevant log files here (or link from a gist).