Skip to content

Instantly share code, notes, and snippets.

@vinirib
Created July 1, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinirib/25696665819efb821ae88f13b50710e0 to your computer and use it in GitHub Desktop.
Save vinirib/25696665819efb821ae88f13b50710e0 to your computer and use it in GitHub Desktop.
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