-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
158 lines (158 loc) · 4.82 KB
/
docker-compose.yml
File metadata and controls
158 lines (158 loc) · 4.82 KB
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
# 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 located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
services:
base:
image: ghcr.io/opencrvs/ocrvs-base:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/Dockerfile.base
deploy:
replicas: 0
client:
image: ghcr.io/opencrvs/ocrvs-client:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/client/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
- LOGIN_URL=http://login:3020
- AUTH_URL_INTERNAL=http://auth:4040
- GATEWAY_URL_INTERNAL=http://gateway:7070
login:
image: ghcr.io/opencrvs/ocrvs-login:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/login/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
- CLIENT_APP_URL=http://register:3000
- AUTH_URL_INTERNAL=http://auth:4040
- GATEWAY_URL_INTERNAL=http://gateway:7070
gateway:
image: ghcr.io/opencrvs/ocrvs-gateway:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/gateway/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- HOST=0.0.0.0
- REDIS_HOST=redis
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- NODE_ENV=development
- EVENTS_URL=http://events:5555/
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- AUTH_URL=http://auth:4040
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- CHECK_INVALID_TOKEN=true
- DOCUMENTS_URL=http://documents:9050
events:
image: ghcr.io/opencrvs/ocrvs-events:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/events/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- ES_URL=http://elasticsearch:9200
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- DOCUMENTS_URL=http://documents:9050
- USER_MANAGEMENT_URL=http://user-mgnt:3030
- AUTH_URL=http://auth:4040
auth:
image: ghcr.io/opencrvs/ocrvs-auth:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/auth/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- REDIS_HOST=redis
- EVENTS_URL=http://events:5555/
- USER_MANAGEMENT_URL=http://user-mgnt:3030/
- CONFIG_TOKEN_EXPIRY_SECONDS=604800
- CONFIG_SMS_CODE_EXPIRY_SECONDS=600
- COUNTRY_CONFIG_URL_INTERNAL=http://countryconfig:3040
user-mgnt:
image: ghcr.io/opencrvs/ocrvs-user-mgnt:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/user-mgnt/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- MONGO_URL=mongodb://mongo1/user-mgnt
- HOST=0.0.0.0
- COUNTRY_CONFIG_URL=http://countryconfig:3040
- DOCUMENTS_URL=http://documents:9050
- EVENTS_URL=http://events:5555/
migration:
image: ghcr.io/opencrvs/ocrvs-migration:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/migration/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- USER_MGNT_MONGO_URL=mongodb://mongo1/user-mgnt
- HEARTH_MONGO_URL=mongodb://mongo1/hearth-dev
- DASHBOARD_MONGO_URL=mongodb://mongo1/performance
- EVENTS_MONGO_URL=mongodb://mongo1/events
- ES_HOST=elasticsearch:9200
- INFLUX_HOST=influxdb
- INFLUX_PORT=8086
- INFLUX_DB=ocrvs
- MONGO_HOST=mongo1
- MONGO_PORT=27017
- WAIT_HOSTS=mongo1:27017,influxdb:8086,minio:9000,elasticsearch:9200
documents:
image: ghcr.io/opencrvs/ocrvs-documents:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/documents/Dockerfile
restart: unless-stopped
depends_on:
- base
environment:
- NODE_ENV=development
- COUNTRY_CONFIG_URL=http://countryconfig:3040
data-seeder:
image: ghcr.io/opencrvs/ocrvs-data-seeder:${VERSION}
#platform: linux/amd64
build:
context: .
dockerfile: ./packages/data-seeder/Dockerfile
depends_on:
- base
deploy:
replicas: 0
environment:
- EVENTS_URL=http://events:5555/
- AUTH_URL=http://auth:4040/