forked from pact-foundation/pact-broker-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
49 lines (47 loc) · 1.75 KB
/
docker-compose-dev.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
postgres:
image: postgres:12
healthcheck:
test: psql postgres --command "select 1" -U postgres
# ports:
# - "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
volumes:
- ${PWD}/docker/postgres-entrypoint.sh:/docker-entrypoint-initdb.d/init-db.sh
- ${PWD}/docker/pg-dump.sql:/tmp/pg-dump.sql
logging:
driver: none
pact-broker:
build: .
ports:
- "9292:9292"
depends_on:
- postgres
environment:
PACT_BROKER_CONF: /tmp/pact_broker.yml
PACT_BROKER_PORT_ENVIRONMENT_VARIABLE_NAME: PORT
PORT: "9292"
PACT_BROKER_DATABASE_URL_ENVIRONMENT_VARIABLE_NAME: DATABASE_URL
DATABASE_URL: "postgres://postgres:password@postgres/postgres"
PACT_BROKER_DATABASE_CLEAN_ENABLED: "false"
PACT_BROKER_DATABASE_CLEAN_CRON_SCHEDULE: "* * * * *"
PACT_BROKER_DATABASE_CLEAN_DRY_RUN: "false"
PACT_BROKER_DATABASE_CLEAN_DELETION_LIMIT: "500"
PACT_BROKER_SQL_LOG_WARN_DURATION: "60"
# Keep all prod versions, AND the latest version for every pacticipant/tag, and all versions less than 30 days old
PACT_BROKER_DATABASE_CLEAN_KEEP_VERSION_SELECTORS: '[{"latest": true, "tag": true}, {"max_age": 30}]'
PACT_BROKER_DATABASE_CONNECT_MAX_RETRIES: "10"
# PACT_BROKER_DATABASE_USERNAME: postgres
# PACT_BROKER_DATABASE_PASSWORD: password
# PACT_BROKER_DATABASE_HOST: postgres
# PACT_BROKER_DATABASE_NAME: postgres
# PACT_BROKER_PORT: "9292"
# PACT_BROKER_LOG_LEVEL: DEBUG
# PACT_BROKER_SQL_LOG_LEVEL: NONE
# PACT_BROKER_DATABASE_CONNECT_MAX_RETRIES: "5"
volumes:
- ./docker/config/pact_broker.yml:/tmp/pact_broker.yml