-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.yml
57 lines (53 loc) · 1.46 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
version: '3'
networks:
openhim:
services:
mongo-db:
container_name: mongo-db
image: mongo:4.0
networks:
- openhim
volumes:
- "mongo-data:/data/db"
restart: unless-stopped
openhim-core:
container_name: openhim-core
image: jembi/openhim-core:latest
restart: unless-stopped
environment:
- mongo_url=mongodb://mongo-db/openhim-development
- mongo_atnaUrl=mongodb://mongo-db/openhim-development
- NODE_ENV=development
- api_authenticationTypes=["token", "basic", "openid", "local"]
- authentication_enableCustomTokenAuthentication=true
- authentication_enableJWTAuthentication=true
- authentication_jwt_secretOrPublicKey=secret
- authentication_jwt_algorithms=HS256
- authentication_jwt_issuer=openhim
- openhimConsoleBaseUrl=http://localhost:9000
ports:
- "8080:8080"
- "5000:5000"
- "5001:5001"
networks:
- openhim
healthcheck:
test: "curl -sSk https://openhim-core:8080/heartbeat || exit 1"
interval: 30s
timeout: 30s
retries: 3
openhim-console:
container_name: openhim-console
image: jembi/openhim-console:latest
restart: unless-stopped
networks:
- openhim
ports:
- "9000:80"
healthcheck:
test: "curl -sS http://openhim-console || exit 1"
interval: 30s
timeout: 30s
retries: 3
volumes:
mongo-data: