forked from pact-foundation/pact-broker-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-heroku.yml
31 lines (28 loc) · 943 Bytes
/
docker-compose-heroku.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This example demonstrates how you can run the Pact Broker docker image on Heroku
# by allowing the PORT and DATABASE_URL environment variables to be used instead of
# PACT_BROKER_PORT and PACT_BROKER_DATABASE_URL.
version: "3"
services:
postgres:
image: postgres
healthcheck:
test: psql postgres --command "select 1" -U postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
pact-broker:
image: "pactfoundation/pact-broker:2.110.0-pactbroker2.107.1"
ports:
- "9393:9393"
depends_on:
- postgres
environment:
PACT_BROKER_PORT_ENVIRONMENT_VARIABLE_NAME: "PORT"
PORT: "9393"
PACT_BROKER_DATABASE_URL_ENVIRONMENT_VARIABLE_NAME: "DATABASE_URL"
DATABASE_URL: "postgres://postgres:password@postgres/postgres"
PACT_BROKER_LOG_LEVEL: INFO
PACT_BROKER_SQL_LOG_LEVEL: DEBUG