Pact Broker largely a copy of dius/pact_broker but built with 1.8.0 for the get all pacts for a producer capability. Like that image, it expects the following environment vars:
PACT_BROKER_DATABASE_USERNAME PACT_BROKER_DATABASE_PASSWORD PACT_BROKER_DATABASE_HOST PACT_BROKER_DATABASE_NAME
If you don't already have a Postgres database to connect to, you can use a docker_compose.yml file something like this to do both:
db: image: postgres environment: POSTGRES_PASSWORD: "yourPassword" broker: image: mattreyuk/pact_broker:1.8.0 links: - db ports: - "80:80" environment: PACT_BROKER_DATABASE_USERNAME: postgres PACT_BROKER_DATABASE_PASSWORD: "yourPassword" PACT_BROKER_DATABASE_HOST: db PACT_BROKER_DATABASE_NAME: postgres command: "/usr/local/bin/rackup -o 0.0.0.0 -p 80"