-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
56 lines (53 loc) · 1.25 KB
/
docker-compose.yaml
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
54
55
56
version: "3"
services:
consumer:
container_name: consumer
build:
context: ./consumer/src
dockerfile: ../Dockerfile
volumes:
- "./consumer/src:/usr/src/app"
environment:
- API_PROVIDER_URL=http://provider:5000
# command:
# - "test"
# - "verify"
depends_on:
- provider
provider:
container_name: provider
build:
context: ./provider/src/
dockerfile: ../Dockerfile
volumes:
- "./provider/src/:/usr/src/app"
# command:
# - "test"
environment:
- FLASK_ENV=development
ports:
- "5000:5000"
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
ports:
- "9292:9292"
depends_on:
- postgres
environment:
PACT_BROKER_LOG_LEVEL: DEBUG
PACT_BROKER_DATABASE_ADAPTER: postgres
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: password
PACT_BROKER_DATABASE_HOST: postgres
PACT_BROKER_DATABASE_NAME: postgres
PACT_BROKER_PORT: "9292"