-
Notifications
You must be signed in to change notification settings - Fork 102
/
docker-compose.yml
53 lines (49 loc) · 1.45 KB
/
docker-compose.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
50
51
52
53
version: "3"
services:
postgres:
image: postgres
healthcheck:
test: psql postgres --command "select 1" -U postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
pact-broker:
image: dius/pact-broker
# build:
# context: .
depends_on:
- postgres
environment:
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: password
PACT_BROKER_DATABASE_HOST: postgres
PACT_BROKER_DATABASE_NAME: postgres
PACT_BROKER_LOG_LEVEL: INFO
PACT_BROKER_DATABASE_CONNECT_MAX_RETRIES: "10"
# If you remove nginx, enable the following
# ports:
# - "80:80"
# Nginx is not necessary, but demonstrates how
# one might use a reverse proxy in front of the broker,
# and includes the use of a self-signed TLS certificate
pact-broker-with-ngnix:
image: nginx:alpine
depends_on:
- pact-broker
volumes:
- ./ssl/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./ssl:/etc/nginx/ssl
ports:
- "8443:443"
- "80:80"
can-i-deploy:
image: pactfoundation/pact-cli
depends_on:
- pact-broker-with-ngnix
environment:
PACT_BROKER_BASE_URL: https://pact-broker-with-ngnix:443
SSL_CERT_FILE: /tmp/self-signed-cert.pem
volumes:
- ${PWD}/ssl/self-signed-cert.pem:/tmp/self-signed-cert.pem
command: broker can-i-deploy --pacticipant "Example App" --latest