diff --git a/.env b/.env index 3874fcc..9656b2a 100644 --- a/.env +++ b/.env @@ -80,6 +80,7 @@ SUPERSET_DB_PASSWORD=superset SUPERSET_ADMIN_USERNAME=admin SUPERSET_ADMIN_PASSWORD=password SUPERSET_LOAD_EXAMPLES=no +SUPERSET_DASHBOARDS_PATH= # Superset Default Analytics DB ANALYTICS_DB_USER=analytics diff --git a/docker-compose-superset.yml b/docker-compose-superset.yml index cd86f0a..c52b1fe 100644 --- a/docker-compose-superset.yml +++ b/docker-compose-superset.yml @@ -17,7 +17,7 @@ services: - ADMIN_USERNAME=${SUPERSET_ADMIN_USERNAME} - ADMIN_PASSWORD=${SUPERSET_ADMIN_PASSWORD} - ANALYTICS_DB_PASSWORD=${ANALYTICS_DB_PASSWORD} - image: &superset-image amancevice/superset:2.1.0 + image: &superset-image amancevice/superset:4.0.0 labels: traefik.enable: "true" traefik.http.routers.superset.rule: "Host(`${SUPERSET_HOSTNAME}`)" @@ -60,6 +60,7 @@ services: restart: on-failure volumes: - ${SUPERSET_CONFIG_PATH}/:/etc/superset/ + - ${SUPERSET_DASHBOARDS_PATH}/:/dashboards/ redis: image: redis:7 diff --git a/scripts/utils.sh b/scripts/utils.sh index e3e5f4a..a43d270 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -35,6 +35,7 @@ function exportPaths () { export OPENMRS_FRONTEND_CONFIG_PATH=$DISTRO_PATH/configs/openmrs/frontend_config/ export SQL_SCRIPTS_PATH=$DISTRO_PATH/data/ export SUPERSET_CONFIG_PATH=$DISTRO_PATH/configs/superset/ + export SUPERSET_DASHBOARDS_PATH=$DISTRO_PATH/configs/superset/dashboard-assets/ export ERPNEXT_CONFIG_PATH=$DISTRO_PATH/configs/erpnext/initializer_config/ export ERPNEXT_SCRIPTS_PATH=$DISTRO_PATH/binaries/erpnext/scripts/ @@ -52,6 +53,7 @@ function exportPaths () { echo "→ OPENMRS_FRONTEND_CONFIG_PATH=$OPENMRS_FRONTEND_CONFIG_PATH" echo "→ SQL_SCRIPTS_PATH=$SQL_SCRIPTS_PATH" echo "→ SUPERSET_CONFIG_PATH=$SUPERSET_CONFIG_PATH" + echo "→ SUPERSET_DASHBOARDS_PATH=$SUPERSET_DASHBOARDS_PATH" echo "→ ERPNEXT_CONFIG_PATH=$ERPNEXT_CONFIG_PATH" echo "→ ERPNEXT_SCRIPTS_PATH=$ERPNEXT_SCRIPTS_PATH"