-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KH-512: Add reports redirect and back up docker compose files (#362)
* KH-512: Add reports redirect and back up docker compose files * Address review * Copy files in single execution step * Add commend tor reports redirect * Update base/scripts/docker-compose-reports-redirect.yml Co-authored-by: Romain Buisson <[email protected]> * Update base/scripts/docker-compose-reports-redirect.yml Co-authored-by: Romain Buisson <[email protected]> --------- Co-authored-by: Romain Buisson <[email protected]>
- Loading branch information
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
services: | ||
create-backup-folder: | ||
image: busybox:latest | ||
command: ["sh", "-c", "mkdir -p /mnt/$$BACKUP_FOLDER"] | ||
environment: | ||
BACKUP_FOLDER: ${BACKUP_FOLDER} | ||
volumes: | ||
- "${BACKUP_PATH:-backup-path}:/mnt" | ||
# | ||
# MySQL backups | ||
# | ||
openmrs-db-backup: | ||
image: mekomsolutions/mysql_backup:48d0823 | ||
depends_on: | ||
create-backup-folder: | ||
condition: service_completed_successfully | ||
environment: | ||
DB_HOST: 172.17.0.1 | ||
DB_NAME: openmrs | ||
DB_USERNAME: ${OPENMRS_DB_USER} | ||
DB_PASSWORD: ${OPENMRS_DB_PASSWORD} | ||
BACKUP_PATH: "/opt/backup/${BACKUP_FOLDER}" | ||
networks: | ||
ozone: | ||
aliases: | ||
- openmrs-db-backup | ||
volumes: | ||
- "${BACKUP_PATH:-backup-path}:/opt/backup/" | ||
# | ||
# OpenMRS Initializer backups | ||
# | ||
openmrs-checksum-backup: | ||
image: mekomsolutions/filestore_backup:48d0823 | ||
depends_on: | ||
create-backup-folder: | ||
condition: service_completed_successfully | ||
environment: | ||
FILESTORE_PATH: /mnt/openmrs_config_checksum | ||
BACKUP_PATH: "/opt/backup/${BACKUP_FOLDER}" | ||
FILENAME: openmrs-checksum | ||
volumes: | ||
- "${BACKUP_PATH:-backup-path}:/opt/backup/" | ||
- "${OPENMRS_CONFIG_CHECKSUMS_PATH:-openmrs-config-checksums}:/mnt/openmrs_config_checksum" | ||
|
||
volumes: | ||
backup-path: ~ | ||
odoo-filestore: ~ | ||
odoo-checksums: ~ | ||
openmrs-config-checksums: ~ | ||
|
||
networks: | ||
ozone: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Needed to redirect <domain>/reports to a separate Superset instance accessible via AWS domain name | ||
# | ||
services: | ||
frontend: | ||
labels: | ||
traefik.http.routers.reports.rule: "Host(`${O3_HOSTNAME}`) && PathPrefix(`/reports`)" | ||
traefik.http.routers.reports.entrypoints: "websecure" | ||
traefik.http.routers.reports.middlewares: reports-redirectregex | ||
traefik.http.middlewares.reports-redirectregex.redirectregex.regex: https://${O3_HOSTNAME}/reports | ||
traefik.http.middlewares.reports-redirectregex.redirectregex.replacement: https://${SUPERSET_HOSTNAME} |