From cc6ecb94d1128ec9e5d046a7865b417969989140 Mon Sep 17 00:00:00 2001 From: Emmanuel Nyachoke Date: Thu, 14 Nov 2024 05:57:28 +0300 Subject: [PATCH] Add person images and complex obs to backup --- .env | 2 ++ docker-compose-openmrs.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 0c35df2..6298ac6 100644 --- a/.env +++ b/.env @@ -116,6 +116,8 @@ OPENMRS_PROPERTIES_PATH= OPENMRS_CORE_PATH= OPENMRS_MODULES_PATH= OPENMRS_CONFIG_PATH= +OPENMRS_PERSON_IMAGES_PATH= +OPENMRS_COMPLEX_OBS_PATH= SPA_PATH= OZONE_CONFIG_PATH= OPENMRS_OWAS_PATH= diff --git a/docker-compose-openmrs.yml b/docker-compose-openmrs.yml index db0a326..0c6ee87 100644 --- a/docker-compose-openmrs.yml +++ b/docker-compose-openmrs.yml @@ -33,7 +33,7 @@ services: traefik.http.middlewares.openmrs-spa-redirectregex.redirectregex.replacement: https://${O3_HOSTNAME}/openmrs/spa/home #=====================================================backup================================================================ restic-compose-backup.volumes: true - restic-compose-backup.volumes.include: "${OPENMRS_CONFIG_CHECKSUMS_PATH:-openmrs-config-checksums}" + restic-compose-backup.volumes.include: "${OPENMRS_CONFIG_CHECKSUMS_PATH:-openmrs-config-checksums},${OPENMRS_PERSON_IMAGES_PATH:-openmrs-person-images}:/openmrs/data/person_images,${OPENMRS_COMPLEX_OBS_PATH:-openmrs-complex-obs}:/openmrs/data/complex_obs" networks: - ozone - web @@ -47,6 +47,8 @@ services: - "${OPENMRS_CONFIG_CHECKSUMS_PATH:-openmrs-config-checksums}:/openmrs/data/configuration_checksums" - "${OPENMRS_PROPERTIES_PATH}:/etc/properties/" - "${OPENMRS_PROPERTIES_PATH}/fhirproxy.properties:/openmrs/data/fhirproxy/config.properties" + - "${OPENMRS_PERSON_IMAGES_PATH:-openmrs-person-images}:/openmrs/data/person_images" + - "${OPENMRS_COMPLEX_OBS_PATH:-openmrs-complex-obs}:/openmrs/data/complex_obs" # OpenMRS 3 Frontend frontend: @@ -108,3 +110,5 @@ volumes: openmrs-data: ~ openmrs-modules: ~ openmrs-owas: ~ + openmrs-person-images: ~ + openmrs-complex-obs: ~