This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
170 lines (168 loc) · 5.52 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors. OpenCRVS and the OpenCRVS
# graphic logo are (registered/a) trademark(s) of Plan International.
version: '3.3'
services:
client:
image: opencrvs/ocrvs-client:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/client/Dockerfile
restart: unless-stopped
components:
image: opencrvs/ocrvs-components:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/components/Dockerfile
restart: unless-stopped
login:
image: opencrvs/ocrvs-login:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/login/Dockerfile
restart: unless-stopped
gateway:
image: opencrvs/ocrvs-gateway:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/gateway/Dockerfile
restart: unless-stopped
environment:
- REDIS_HOST=redis
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- NODE_ENV=development
- FHIR_URL=http://openhim-core:5001/fhir
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- SEARCH_URL=http://search:9090/
- METRICS_URL=http://metrics:1050
- AUTH_URL=http://auth:4040
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- NOTIFICATION_URL=http://notification:2020/
- WORKFLOW_URL=http://workflow:5050/
- APPLICATION_CONFIG_URL=http://config:2021/
- CHECK_INVALID_TOKEN=true
# User facing services
workflow:
image: opencrvs/ocrvs-workflow:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/workflow/Dockerfile
restart: unless-stopped
environment:
- NODE_ENV=development
- NOTIFICATION_SERVICE_URL=http://notification:2020/
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- RESOURCE_SERVICE_URL=http://countryconfig:3040/
- HEARTH_URL=http://hearth:3447/fhir
- OPENHIM_URL=http://openhim-core:5001
- APPLICATION_CONFIG_URL=http://config:2021/
- COUNTRY=${COUNTRY:-bgd} # PEN_TEST change to gbr
search:
image: opencrvs/ocrvs-search:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/search/Dockerfile
restart: unless-stopped
environment:
- NODE_ENV=development
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- ES_HOST=elasticsearch:9200
- HEARTH_URL=http://hearth:3447/fhir
metrics:
image: opencrvs/ocrvs-metrics:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/metrics/Dockerfile
restart: unless-stopped
environment:
- INFLUX_HOST=influxdb
- INFLUX_PORT=8086
- INFLUX_DB=ocrvs
- COUNTRY_CONFIG_URL=http://countryconfig:3040/
- CONFIG_API_URL=http://config:2021
- FHIR_URL=http://openhim-core:5001/fhir
- SEARCH_URL=http://search:9090/
- USER_MANAGEMENT_URL=http://user-mgnt:3030
# END User facing services
auth:
image: opencrvs/ocrvs-auth:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/auth/Dockerfile
restart: unless-stopped
environment:
- REDIS_HOST=redis
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- NOTIFICATION_SERVICE_URL=http://notification:2020/
user-mgnt:
image: opencrvs/ocrvs-user-mgnt:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/user-mgnt/Dockerfile
restart: unless-stopped
environment:
- MONGO_URL=mongodb://mongo1/user-mgnt
- NOTIFICATION_SERVICE_URL=http://notification:2020/
- FHIR_URL=http://openhim-core:5001/fhir
- HOST=0.0.0.0
webhooks:
image: opencrvs/ocrvs-webhooks:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/webhooks/Dockerfile
restart: unless-stopped
environment:
- REDIS_HOST=redis://redis:6379
- MONGO_URL=mongodb://mongo1/webhooks
- AUTH_URL=http://auth:4040
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- FHIR_URL=http://openhim-core:5001/fhir
- HOST=0.0.0.0
- CHECK_INVALID_TOKEN=true
notification:
image: opencrvs/ocrvs-notification:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/notification/Dockerfile
restart: unless-stopped
environment:
- COUNTRY=${COUNTRY:-bgd}
- HOST=0.0.0.0
- COUNTRY_CONFIG_URL=http://countryconfig:3040
config:
image: opencrvs/ocrvs-config:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/config/Dockerfile
restart: unless-stopped
environment:
- AUTH_URL=http://auth:4040
- HOST=0.0.0.0
- PORT=2021
- MONGO_URL=mongodb://mongo1/application-config
- FHIR_URL=http://openhim-core:5001/fhir
- SEARCH_URL=http://search:9090/
- METRICS_URL=http://metrics:1050
- CHECK_INVALID_TOKEN=true
migration:
image: opencrvs/ocrvs-migration:${VERSION:-latest}
build:
context: .
dockerfile: ./packages/migration/Dockerfile
restart: unless-stopped
environment:
- HEARTH_MONGO_URL=mongodb://mongo1/hearth-dev
- OPENHIM_MONGO_URL=mongodb://mongo1/openhim-dev
- INFLUX_HOST=influxdb
- INFLUX_PORT=8086
- INFLUX_DB=ocrvs
- WAIT_HOSTS=mongo1:27017,influxdb:8086