-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
119 lines (112 loc) · 3.1 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3.8'
## Container debugging:
# 1. append the following lines to desired container
# 2. boot up the container using `docker-compose up -d`
# 3 run `docker exec -it <container-name> bash` to start interactive shell
#
# tty: true
# stdin_open: true
# entrypoint: bash
services:
# shr: Run natively using yarn, or see docker-compose.yml
shr:
container_name: shr
hostname: shr
image: itechuw/shared-health-record:${SHR_VERSION-latest}
build: .
ports:
- 3000:3000
environment:
- NODE_ENV=docker
volumes:
- ./config/config_docker.json:/app/config/config_docker.json
- ./config/mediator_docker.json:/app/config/mediator_docker.json
shr-fhir:
container_name: shr-fhir
hostname: shr-fhir
image: hapiproject/hapi:latest-tomcat
restart: unless-stopped
configs:
- source: hapi
target: /data/hapi/application.yaml
volumes:
- /data/hapi
environment:
SPRING_CONFIG_LOCATION: 'file:///data/hapi/application.yaml'
# Kafka Task Runners
zookeeper:
image: 'bitnami/zookeeper:latest'
hostname: zookeeper
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
volumes:
- /data
kafka:
image: 'bitnami/kafka:latest'
hostname: kafka
container_name: kafka
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
volumes:
- /bitnami/kafka
depends_on:
- zookeeper
entrypoint: sh -c 'sleep 30 && /opt/bitnami/scripts/kafka/entrypoint.sh /opt/bitnami/scripts/kafka/run.sh' # prevent zookeeper conflict error
###
# OpenHIM
###
openhim-core:
profiles: ['openhim']
image: jembi/openhim-core:latest
hostname: openhim-core
restart: unless-stopped
environment:
mongo_url: 'mongodb://mongo-db/openhim'
mongo_atnaUrl: 'mongodb://mongo-db/openhim'
NODE_ENV: 'development'
ports:
- 8080:8080
- 5000:5000
- 5001:5001
healthcheck:
test: 'curl -sSk https://localhost:8080/heartbeat || exit 1'
interval: 30s
timeout: 30s
retries: 3
mongo-db:
profiles: ['openhim']
image: mongo:3.4
volumes:
- '/data/db'
restart: unless-stopped
# OpenHIM Config
openhim-config:
profiles: ['openhim']
container_name: openhim-config
image: ghcr.io/i-tech-uw/openhim-config:v0.0.0
volumes:
- ./config/openhim/ci-openhim-config.json:/app/test-openhim-config.json
# Newman Tests
newman:
# profiles: ['test']
image: postman/newman
environment:
- $POSTMAN_COLLECTION
volumes:
- ./.postman:/.postman
entrypoint: newman run $POSTMAN_COLLECTION -e /.postman/ci.postman_environment.json --insecure --timeout-request 10000 --delay-request 10000
# MLLP Tests
mllp_tests:
# profiles: ['test']
container_name: mllp_tests
image: ghcr.io/b-techbw/mllp-tester:main
volumes:
- ./test/mllp:/test
configs:
hapi:
file: true