BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

Metabase Configuration (docker)

Metabase is an opensource, popular, analytics and reporting tool, which can be used to connect to Mart DB, OpenMRS DB, etc. to create visualisation, dashboards, reports, etc in data stored in Bahmni. Bahmni comes pre-packaged with metabase and mart, in docker compose (for both bahmni-lite and bahmni-standard). Before you use Metabase for production data, please ensure you have setup correct permissions/groups for users, so they don’t get access to ALL the data. Read more on that here: Securing Metabase & Bahmni Mart Analytics Tool . To better understand Bahmni Mart please read: Bahmni Mart

Environment Configurations:

Variable NameDescription
METABASE_IMAGE_TAGThis value tells which image version to be used for Metabase. A list of tags can be found at bahmni/Metabase image - Tags.
METABASE_POSTGRES_IMAGE_TAGThis value tells which image version to be used for Postgres image. A list of tags can be found at postgres - Tags.
METABASE_DB_HOSTHost of the Metabase application database.
METABASE_DB_PORTPort of the Metabase application database.
METABASE_DB_NAMEName of the Metabase application database.
METABASE_DB_USERUsername of the Metabase application database.
METABASE_DB_PASSWORDPassword of the Metabase application database.
MB_ADMIN_EMAILEmail-Id of the Metabase application Admin user.
MB_ADMIN_FIRST_NAMEFirst name of the Metabase application Admin user.
MB_ADMIN_PASSWORDPassword of the Metabase application Admin user.
OPENMRS_DB_HOSTHost of the OpenMRS database.
OPENMRS_DB_NAMEName of the OpenMRS database.
OPENMRS_DB_USERNAMEUsername of the OpenMRS database.
OPENMRS_DB_PASSWORDPassword of the OpenMRS database.
OPENMRS_DB_TYPEType of the OpenMRS database.

Starting Metabase from Bahmni Docker Metabase will start with below details:A pre-configured Admin user.

Pre-connected to OpenMRS DB and MART DB.

Few sample reports.

To start Metabase in local follow the below commands.

We need OpenMRS DB to be up and running before starting Metabase else the Sample reports will not be generated.

Start metabase profile from docker-compose.yaml

3. Metabase should be running on https://<IP>/metabase

4. To Login, use the same credentials as mentioned in the .env file for variables: METABASE_ADMIN_EMAIL and METABASE_ADMIN_PASSWORD.

Once you have logged in as Admin user to Metabase you can go to DATA -> Browse data -> OUR DATA to see all the connected Databases and to visualize the predefined reports the user needs to go to COLLECTIONS -> Bahmni Analytics

Note: Automatic report generation and DB integration will happen in Metabase during start-up only if no prior user exists in Metabase. If Metabase DB already has an user then DB integration and report generation will be skipped.

Short Demo video on Youtube of Metabase & Mart: https://www.youtube.com/watch?v=IHZR-W7EdNg

1관련 문서: Running Bahmni on Docker

원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗