-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (47 loc) · 958 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (47 loc) · 958 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
postgres:
image: postgres
hostname: postgres
environment:
PGUSER: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: consumer-api
healthcheck:
test: pg_isready
interval: 10s
timeout: 5s
retries: 5
ports:
- 5432:5432
networks:
- consumerapi
mockpa:
hostname: mock-pa
container_name: mock-platformapi
build: ./testing/mock_services/platformapi/.
ports:
- 3000:8001
restart: on-failure
networks:
- consumerapi
consumer-api:
hostname: consumer-api
container_name: consumer-api
environment:
CONAPI_PA_URL: http://mock-pa:8001
CONAPI_POSTGRES_NAME: consumer-api
build:
context: .
ports:
- 6060:6060
restart: on-failure
depends_on:
- postgres
- mockpa
networks:
- consumerapi
networks:
consumerapi:
driver: bridge