Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.1'
- services:
- postgres:
- image: shanelee007/docker-pact-postgres
- environment:
- - POSTGRES_PASSWORD=ThePostgresPassword
- - POSTGRES_USER=admin
- ports:
- - "5433:5432"
- healthcheck:
- test: ["CMD-SHELL", "psql -h 'localhost' -U 'admin' -c '\\l'"]
- interval: 30s
- timeout: 30s
- retries: 3
- pact:
- image: dius/pact-broker:latest
- environment:
- - PACT_BROKER_DATABASE_NAME=pactbroker
- - PACT_BROKER_DATABASE_PASSWORD=TheUserPassword
- - PACT_BROKER_DATABASE_HOST=postgres
- - PACT_BROKER_DATABASE_USERNAME=pactbrokeruser
- - PACT_BROKER_BASIC_AUTH_USERNAME=shanelee007
- - PACT_BROKER_BASIC_AUTH_PASSWORD=password123
- ports:
- - "80:80"
- depends_on:
- postgres:
- condition: service_healthy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement