-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.07 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
version: '3.9'
services:
pact-postgres:
image: postgres
container_name: pact_postgres_db
ports:
- "5432:5432"
healthcheck:
test: psql postgres -U postgres --command 'SELECT 1'
env_file:
- default.env
broker:
image: pactfoundation/pact-broker:latest-multi
container_name: broker.local
depends_on:
pact-postgres:
condition: service_healthy
ports:
- "9292:9292"
restart: always
env_file:
- default.env
healthcheck:
test: [
"CMD",
"wget",
"-q",
"--tries=1",
"--spider",
"http://$$PACT_BROKER_BASIC_AUTH_USERNAME:$$PACT_BROKER_BASIC_AUTH_PASSWORD@localhost:9292/diagnostic/status/heartbeat"
]
interval: 3s
timeout: 5s
retries: 10
start_period: 15s
state-app:
container_name: state_app.local
build: .
ports:
- "5001:5001"
entrypoint: ["python3", "state_app.py"]
# flask requires SIGINT to stop gracefully
stop_signal: SIGINT
env_file:
- default.env
volumes:
- ./src:/app