-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yaml
41 lines (40 loc) · 975 Bytes
/
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
version: '3.4'
services:
fhir-burni-mongodb:
image: mongo:7.0
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 ! echo >/dev/tcp/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