Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.51 KB

README.md

File metadata and controls

49 lines (42 loc) · 1.51 KB

Build Status

Pact Broker

Overview

This image run the Pact Broker in a Docker Container. To run the container, an instance of postgresql is required.

This uses Puma with Nginx and is inspired by the existing docker image for Pact Broker

How-to/usage

Using the image with Docker Compose

version: '2'
services:
  pact_broker:
    image: rajatvig/pactbroker:latest
    hostname: broker
    domainname: docker.local
    environment:
      PACT_BROKER_DATABASE_USERNAME: pactbroker
      PACT_BROKER_DATABASE_PASSWORD: password
      PACT_BROKER_DATABASE_HOST: db.docker.local
      PACT_BROKER_DATABASE_NAME: pactbroker
    ports:
      - "80:80"
    depends_on:
      - db
    links:
      - db:db.docker.local
  db:
    image: postgres
    hostname: db
    domainname: docker.local
    environment:
      POSTGRES_PASSWORD: password
      POSTGRES_USER: pactbroker
      POSTGRES_DB: pactbroker
    ports:
      - "5432:5432"
docker-compose up