Skip to content

Commit

Permalink
Add docker compose eip-openmrs-orthanc service and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishSiddharth committed Nov 9, 2024
1 parent 82317fc commit 61db9f3
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ EMR_WEIGHT_CONCEPT=
ODOO_ENABLE_EXTRA_CUSTOMER_FIELDS_ROUTE=false
ODOO_ENABLE_EXTRA_QUOTATION_FIELDS_ROUTE=false

# EIP client Orthanc
EIP_DB_NAME_ORTHANC=openmrs_eip_mgt_orthanc
EIP_DB_USER_ORTHANC=openmrs_eip_mgt_orthanc
EIP_DB_PASSWORD_ORTHANC=password
DB_EVENT_DESTINATIONS_ORTHANC=direct:orthanc-event-listener

# EIP client ERPNext
EIP_DB_NAME_ERPNEXT=openmrs_eip_mgt_erpnext
EIP_DB_USER_ERPNEXT=openmrs_eip_mgt_erpnext
Expand Down Expand Up @@ -128,6 +134,7 @@ EIP_OPENMRS_SENAITE_CONFIG_PATH=
EIP_OPENMRS_SENAITE_ROUTES_PATH=
EIP_ODOO_OPENMRS_PROPERTIES_PATH=
EIP_ODOO_OPENMRS_ROUTES_PATH=
EIP_OPENMRS_ORTHANC_ROUTES_PATH=

# Use the following volume to point to override database initialization scripts
# Be careful when overriding this because the default scripts run essential configuration tasks needed by Ozone FOSS
Expand Down
53 changes: 51 additions & 2 deletions docker-compose-orthanc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
dockerfile: Dockerfile
restart: always
environment:
- ORTHANC_NAME=${ORTHANC_NAME}
- ORTHANC_NAME=Orthanc
- ORTHANC_AUTHENTICATION=keycloak
- KEYCLOAK_REALM=orthanc
- KEYCLOAK_CLIENT_ID=orthanc
Expand Down Expand Up @@ -45,6 +45,54 @@ services:
# environment:
# - ORTHANC_PUBLIC_URL=http://${ORTHANC_HOSTNAME}

# Orthanc - OpenMRS integration service
eip-openmrs-orthanc:
depends_on:
env-substitution:
condition: service_completed_successfully
openmrs:
condition: service_healthy
mysql:
condition: service_started
orthanc:
condition: service_started
environment:
- EIP_DB_NAME_ORTHANC=${EIP_DB_NAME_ORTHANC}
- EIP_DB_USER_ORTHANC=${EIP_DB_USER_ORTHANC}
- EIP_DB_PASSWORD_ORTHANC=${EIP_DB_PASSWORD_ORTHANC}
- OPENMRS_URL=http://openmrs:8080/openmrs
- EIP_PROFILE=prod
- MYSQL_ADMIN_USER=root
- MYSQL_ADMIN_USER_PASSWORD=${MYSQL_ROOT_PASSWORD}
- OPENMRS_DB_HOST=${OPENMRS_DB_HOST}
- OPENMRS_DB_PORT=${OPENMRS_DB_PORT}
- OPENMRS_DB_NAME=${OPENMRS_DB_NAME}
- OPENMRS_DB_USER=${OPENMRS_DB_USER}
- OPENMRS_DB_PASSWORD=${OPENMRS_DB_PASSWORD}
- OPENMRS_USER=${OPENMRS_USER}
- OPENMRS_PASSWORD=${OPENMRS_PASSWORD}
- EIP_FHIR_RESOURCES=
- EIP_FHIR_SERVER_URL=http://openmrs:8080/openmrs/ws/fhir2/R4
- EIP_FHIR_USERNAME=${OPENMRS_USER}
- EIP_FHIR_PASSWORD=${OPENMRS_PASSWORD}
image: mekomsolutions/eip-client
networks:
ozone:
aliases:
- eip-openmrs-orthanc
restart: unless-stopped
volumes:
- "${EIP_OPENMRS_ORTHANC_ROUTES_PATH}:/eip-client/routes"
- eip-home-orthanc:/eip-home

mysql:
environment:
EIP_DB_NAME_ODOO: ${EIP_DB_NAME_ODOO}
EIP_DB_USER_ODOO: ${EIP_DB_USER_ODOO}
EIP_DB_PASSWORD_ODOO: ${EIP_DB_PASSWORD_ODOO}
volumes:
- "${SQL_SCRIPTS_PATH}/mysql/eip-openmrs-orthanc:/docker-entrypoint-initdb.d/db/eip-openmrs-orthanc"

secrets:
orthanc.json:
file: orthanc.json
Expand All @@ -54,4 +102,5 @@ networks:
web:

volumes:
orthanc-db:
orthanc-db:
eip-home-orthanc: ~
1 change: 1 addition & 0 deletions scripts/docker-compose-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ docker-compose-common.yml
docker-compose-odoo.yml
docker-compose-openmrs.yml
docker-compose-senaite.yml
docker-compose-orthanc.yml
1 change: 1 addition & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function exportPaths () {
export ODOO_CONFIG_PATH=$DISTRO_PATH/configs/odoo/initializer_config/
export ODOO_CONFIG_FILE_PATH=$DISTRO_PATH/configs/odoo/config/odoo.conf
export EIP_ODOO_OPENMRS_ROUTES_PATH=$DISTRO_PATH/binaries/eip-odoo-openmrs
export EIP_OPENMRS_ORTHANC_ROUTES_PATH=$DISTRO_PATH/binaries/eip-openmrs-orthanc
export EIP_OPENMRS_SENAITE_ROUTES_PATH=$DISTRO_PATH/binaries/eip-openmrs-senaite
export EIP_ERPNEXT_OPENMRS_ROUTES_PATH=$DISTRO_PATH/binaries/eip-erpnext-openmrs
export OPENMRS_FRONTEND_BINARY_PATH=$DISTRO_PATH/binaries/openmrs/frontend
Expand Down

0 comments on commit 61db9f3

Please sign in to comment.