forked from pactflow/example-provider-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 741 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 741 Bytes
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
version: "3"
services:
api:
image: tiangolo/uvicorn-gunicorn-fastapi:python3.7
volumes:
- ./app:/app
expose:
- "8000"
environment:
- PORT=8000
pact_verifier:
image: pactfoundation/pact-cli:latest
depends_on:
- api
environment:
- PACT_BROKER_BASE_URL
- PACT_BROKER_TOKEN
- PACT_BROKER_USERNAME
- PACT_BROKER_PASSWORD
- PACT_BROKER_PUBLISH_VERIFICATION_RESULTS
- PACT_URL
- GIT_COMMIT
- GIT_BRANCH
command: >
verify
${PACT_URL}
--provider-base-url http://api:8000
--provider pactflow-example-provider-python
--provider-app-version ${GIT_COMMIT}
--provider-version-tag ${GIT_BRANCH}
--wait 10