-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.yaml
54 lines (49 loc) · 2.21 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '2.1'
services:
batch:
build:
context: batch
image: openmrs-fhir-analytics/batch-job:latest
#restart: "always"
network_mode: host
container_name: batch-cloud
healthcheck:
test: "exit 0"
environment:
- GCP_FHIR_STORE=projects/PROJECT/locations/LOCATION/datasets/DATASET/fhirStores/FHIRSTORENAME
- JSESSION_ID=3B09C6775C95D45A35AB3F1303E3BA15 # TODO replace with basic auth implementation by @pmanko
- SERVER_URL=http://localhost:8099/openmrs
- SEARCH_LIST=Patient,Encounter,Observation
- BATCH_SIZE=20
- TARGET_PARALLELISM=20
streaming-binlog: # To run independently: docker-compose up --build streaming-binlog
build:
context: streaming-binlog
image: openmrs-fhir-analytics/streaming-pipeline:${DEBEZIUM_VERSION}
container_name: streaming-pipeline
network_mode: host
healthcheck:
test: "exit 0"
volumes:
- ./dbz:/tmp
environment:
- JAVA_MAIN_CLASS=org.openmrs.analytics.Runner
- JAVA_OPTIONS=-Ddatabase.hostname=localhost -Ddatabase.port=3306 -Ddatabase.user=root -Ddatabase.password=debezium
-Ddatabase.dbname=mysql -Ddatabase.schema=openmrs -Ddatabase.serverId=77 -Ddatabase.offsetStorage=/tmp/offset.dat
-Ddatabase.databaseHistory=/tmp/dbhistory.dat -Dopenmrs.username=admin -Dopenmrs.password=Admin123
-Dopenmrs.serverUrl=http://localhost:8099 -Dopenmrs.fhirBaseEndpoint=/openmrs/ws/fhir2/R4
-Dcloud.gcpFhirStore=projects/PROJECT/locations/LOCATION/datasets/DATASET/fhirStores/FHIRSTORENAME
# TODO add attomfeed streaming - I think @pmanko is working on