-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (45 loc) · 1.13 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
version: '3.4'
services:
fhir-burni-mongodb:
image: mongo:4.2
container_name : fhir-burni-mongodb
restart: always
ports:
- 27017:27017
volumes:
- ./mongodb/db:/data/db
environment:
# provide your credentials here
- MONGO_INITDB_DATABASE=admin
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_PORT=27017
fhir-burni:
build: ./
container_name: fhir-burni
command: >
/bin/sh -c '
while ! nc -z fhir-burni-mongodb 27017;
do
echo "waiting for database ...";
sleep 3;
done;
echo "db is ready!";
pm2-runtime start ecosystem.config.js;
'
volumes :
- ./:/nodejs/fhir-burni
- /nodejs/fhir-burni/node_modules
- ./validation-files:/validationResources
ports:
- 8080:8080
depends_on:
- fhir-burni-mongodb
tty : true
restart: on-failure:3
stdin_open : true
burni-fhir-validator-api:
image: a5566qq123/fhir-validator-api
container_name: burni-fhir-validator-api
volumes:
- ./validation-files:/app/assets/validationResources