forked from RACSEL/IPS-national-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
270 lines (254 loc) · 7.61 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
version: '3.8'
services:
hapi-fhir:
image: "hapiproject/hapi:latest"
depends_on:
- hapi-db
volumes:
- ./hapi-config:/data/hapi
ports:
- "8080:8080"
environment:
SPRING_CONFIG_LOCATION: 'file:///data/hapi/application.yaml'
SPRING_DATASOURCE_URL: 'jdbc:postgresql://hapi-db:5433/root'
SPRING_DATASOURCE_USERNAME: 'root'
SPRING_DATASOURCE_PASSWORD: 'hapifhir2023'
SPRING_DATASOURCE_DRIVERCLASSNAME: 'org.postgresql.Driver'
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: 'ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect'
hapi-db:
image: "postgres:14.6"
restart: always
user: root
environment:
POSTGRES_DB: "root"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "hapifhir2023"
volumes:
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 20s
timeout: 10s
retries: 5
command: -p 5433
hapi-fhir-bundle-signer:
build:
context: ./bundle-signer
ports:
- "3000:3000"
environment:
NODE_ENV: "production"
PROD_HAPI_FHIR: "http://hapi-fhir:8080"
DDCC_URL: "http://ddcc:4321/ddcc"
EXTERNAL_HAPI_FHIR: "http://lacpass.create.cl:8080/fhir"
PROD_PRIVATE_KEY_FILE: "./static/key.pem"
volumes:
- ./bundle-signer/static:/usr/src/app/static
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: elasticsearch
environment:
- node.name=snowstorm
- cluster.name=snowstorm-cluster
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- discovery.type=single-node
volumes:
- ./elastic:/var/lib/elasticsearch/data
networks:
elastic:
aliases:
- es
healthcheck:
test: [ "CMD", "curl", "-f", "http://es:9200" ]
interval: 30s
timeout: 10s
retries: 5
ports:
- 127.0.0.1:9200:9200
mem_reservation: 2g
snowstorm:
image: snomedinternational/snowstorm:latest
container_name: snowstorm
restart: always
depends_on:
elasticsearch:
condition: service_healthy
entrypoint: java -Xms2g -Xmx4g -jar snowstorm.jar --elasticsearch.urls=http://es:9200 --delete-indices --import=/snomed/SnomedCT_IPSTerminologyRelease.zip
networks:
elastic:
aliases:
- snowstorm
volumes:
- ./snomed:/snomed
ports:
- 8000:8080
snowstorm-browser:
image: snomedinternational/snomedct-browser:latest
container_name: browser
depends_on:
- snowstorm
links:
- snowstorm:snowstorm
networks:
- elastic
environment:
- API_HOST=http://snowstorm:8080/
ports:
- 8082:80
restart: always
# openhim-mongo-db:
# container_name: openhim-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:v7.1.0
# restart: unless-stopped
# environment:
# mongo_url: "mongodb://openhim-mongo-db/openhim-development"
# mongo_atnaUrl: "mongodb://openhim-mongo-db/openhim-development"
# NODE_ENV: "development"
# ports:
# - "8083:8080"
# - "8084:5000"
# - "8085:5001"
# networks:
# - openhim
# healthcheck:
# test: "curl -sSk https://openhim-core:8083/heartbeat || exit 1"
# interval: 30s
# timeout: 30s
# retries: 3
# openhim-console:
# container_name: openhim-console
# image: jembi/openhim-console:v1.15.0
# restart: unless-stopped
# networks:
# - openhim
# ports:
# - "8086:80"
# healthcheck:
# test: "curl -sS http://openhim-console || exit 1"
# interval: 30s
# timeout: 30s
# retries: 3
ddcc:
container_name: ddcc-transactions-mediator
image: censcl/ops-ddcc-transactions-mediator-lacpass-ips:latest
environment:
FHIR_SERVER: 'http://hapi-fhir:8080/fhir/'
MATCHBOX_SERVER: 'http://resource-generation-service:8080/fhir/'
PRIVATE_KEY_FILE: '/app/cert-data/DSC01privkey.key'
PUBLIC_KEY_FILE: '/app/cert-data/DSCcert.pem'
COUNTRY_CODE: 'XCL'
volumes:
- ./cert-data:/app/cert-data
ports:
- "4321:4321"
depends_on:
- resource-generation-service
resource-generation-service:
container_name: resource-generation-service
image: censcl/ops-ddcc-resource-generation-service:v1.0
ports:
- "8023:8080"
ips-app:
container_name: ips-app
image: createchile/ipsapp_app:latest
depends_on:
database-app:
condition: service_healthy
ports:
- "8085:5002"
database-app:
image: postgres
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d ips"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- ./init-db-app:/docker-entrypoint-initdb.d/
- ./postgres-data-app:/var/lib/postgresql/data
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=adminips
- POSTGRES_DB=ips
####### LACCHAIN COMPONENT #########
lacchain-postgres:
image: postgres:15-bullseye
ports:
- "5440:5432"
environment:
POSTGRES_PASSWORD: lacchain_postgres_password
POSTGRES_DB: lacpass_lacchain_db
volumes:
- ./lacchain-postgres-data:/var/lib/postgresql/data
networks:
- lacchain_backend
lacchain-redis:
image: redis:latest
command: redis-server --requirepass lacchain_redis_password
ports:
- "6390:6379"
networks:
- lacchain_backend
lacpass-lacchain:
image: eumb602/lacpass-client:latest
environment:
ENV: prod
DOCS_ENABLED: "true"
PORT: 80
JWT_SECRET: some-secret-string
TYPEORM_TYPE: postgres
TYPEORM_HOST: lacchain-postgres
TYPEORM_USERNAME: postgres
TYPEORM_PASSWORD: lacchain_postgres_password
TYPEORM_DATABASE: lacpass_lacchain_db
TYPEORM_PORT: 5432
TYPEORM_SYNCHRONIZE: "true"
TYPEORM_LOGGING: "true"
TYPEORM_MIGRATIONS_RUN: "true"
REDIS_HOST: lacchain-redis
REDIS_PORT: 6379
REDIS_PASSWORD: lacchain_redis_password
ACCESS_TOKEN_LIFE: 360000000
RATE_LIMIT_WINDOW: 5
RATE_LIMIT_MAX_REQUESTS: 100
EMAIL_TRANSPORTER: AWS
####### BEGIN OPEN protestnet Configuration #######
CHAIN_ID: "0x9e55c"
SECURE_RELAY_MESSAGE_DELIVERER_BASE_URL: https://mailbox.openprotest.lacnet.com
SECURE_RELAY_MESSAGE_DELIVERER_SEND: /vc
SECURE_RELAY_SERVICE_DID: did:lac:openprotest:0xf33bc23691245c2d5de99d7d45e9fdd113495870
DID_RESOLVER_URL: "https://resolver.lacchain.net/"
NODE_RPC_URL: https://lacpass-openprotest-node.lacchain.net # https://writer-openprotest.lacnet.com
NODE_ADDRESS: "0x3a8c3cd49347530d1c946cbad5114418e1546dbc" #"0xad730de8c4bfc3d845f7ce851bcf2ea17c049585"
PUBLIC_DIRECTORY_CONTRACT_ADDRESS: "0xbBbfDe862725186E3D5332618a5546e60fcB75e6"
CHAIN_OF_TRUST_CONTRACT_ADDRESS: "0xFE7CEF0D8E9A1dab4C4F57154e0191d67D4803AF"
PROOF_OF_EXISTENCE_MODE: "ENABLED_NOT_THROWABLE" # options: "STRICT", "DISABLED", by default "ENABLED_NOT_THROWABLE"
VERIFICATION_REGISTRY_CONTRACT_ADDRESS: "0x64CaA0fC7E0C1f051078da9525A31D00dB1F50eE"
####### END OPEN protestnet Configuration #######
ports:
- "3010:80"
restart: on-failure
container_name: lacpass-lacchain
depends_on:
- lacchain-postgres
- lacchain-redis
links:
- lacchain-postgres
- lacchain-redis
networks:
- lacchain_backend
networks:
elastic:
lacchain_backend:
name: lacchain_backend