DiUS / pact_broker-docker

'Dockerised' pact broker
http://pact.io
MIT License
76 stars 102 forks source link

version 2.88.0.0 doesn't use value of PACT_BROKER_DATABASE_PORT #110

Closed dpittner closed 2 years ago

dpittner commented 2 years ago

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).

bethesque commented 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

bethesque commented 2 years ago

Oh! Apologies! I got confused with PACT_BROKER_PORT! Let me have a look.

bethesque commented 2 years ago

Fixed in 2.89.0 of the Pact Broker gem. Please update to 2.89.0.0

dpittner commented 2 years ago

Thanks you very much!