Skip to content

Instantly share code, notes, and snippets.

@vinirib

vinirib/pact-ci.yml

Created Jul 1, 2020
Embed
What would you like to do?
version: '3.3'
services:
jenkins:
build:
context: ./jenkins_config
dockerfile: Dockerfile
image: jenkins-pact-ci
container_name: jenkins-pact-ci
restart: always
ports:
- '8080:8080'
- '50000:50000'
volumes:
- "./jenkins_home:/var/jenkins_home"
- "$HOME/.m2:/var/jenkins_home/.m2:rw"
networks:
- "pact"
postgres:
image: postgres:10.5
healthcheck:
test: psql postgres --command "select 1" -U postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
networks:
- "pact"
pact_broker:
image: dius/pact-broker:2.27.2-1
ports:
- "80:80"
links:
- postgres
environment:
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: password
PACT_BROKER_DATABASE_HOST: postgres
PACT_BROKER_DATABASE_NAME: postgres
PACT_BROKER_WEBHOOK_SCHEME_WHITELIST: http https
networks:
- "pact"
networks:
pact:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment