-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
72 lines (64 loc) · 2.08 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.7"
networks:
mojaloop-net:
name: mojaloop-net
services:
reporting-hub-bop-trx-ui:
image: mojaloop/reporting-hub-bop-trx-ui:v1.7.2
environment:
- REACT_APP_API_BASE_URL=http://localhost:3000/
- REACT_APP_MOCK_API=false
ports:
- "8082:8082"
networks:
- mojaloop-net
healthcheck:
test: wget -q http://172.17.0.1:8082 -O /dev/null || exit 1
timeout: 20s
retries: 30
interval: 15s
reporting-hub-bop-api-svc:
build:
context: .
environment:
- LOG_LEVEL=debug
volumes:
- ./config/default.json:/opt/reporting/config/default.json
ports:
- "3000:3000"
# Important to specify the network_mode as host to allow the service to connect to the host machine
network_mode: host
## TODO: The following sections are provided as future proof and can be enabled later.
## Currently we can't query the event information from api service as there is no functionality in ml-core-test-harness to push the audit messages to kafka notification topic.
## When it's implemented, we can enable the following services to process and store the events and run queries on that data from api service.
# reporting-events-processor-svc:
# image: mojaloop/reporting-events-processor-svc:v1.1.0
# environment:
# - REACT_APP_API_BASE_URL=http://localhost:3000/
# - REACT_APP_MOCK_API=false
# - MONGO_DB_URI=mongodb://test:test123@mongodb/admin
# - MONGO_DB_DBNAME=test
# - MONGO_DB_COLNAME=test
# - KAFKA_URI=kafka:29092
# - KAFKA_TOPIC_TO_CONSUME=topic-event
# - KAFKA_CONSUMER_GROUP=test-group
# - KAFKA_CLIENT_ID=events-processor
# networks:
# - mojaloop-net
# mongodb:
# image: mongo:6.0.5
# ports:
# - "37017:27017"
# networks:
# - mojaloop-net
# volumes:
# - db-data:/data/db
# healthcheck:
# test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
# interval: 10s
# timeout: 10s
# retries: 5
# start_period: 40s
volumes:
db-data:
driver: local