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

Changing Default Credentials of Bahmni Docker

High Level Summary of Steps

At a high level, for each of the services you run, ensure the username & passwords are secure. Check for all services including OpenMRS, Crater, Metabase, Odoo, DCM4chee, OpenELIS, etc, and also the associated database credentials.

For this, you would need to update the credentials in the .env file for services & DB’s, and for some of the services, you need to ensure that they are running. Then, log in to their admin section and change the default credentials. Additionally, make sure to update the .env file with the new credentials after bringing down the service, before bringing the services back up.

This whole process should likely take you approx. 30-45 mins. To know which all passwords need to be changed, search for all variables in .env file which end with PASSWORD. See the sample command that can help: cat .env | grep PASSWORD

Grep for Passwords in env file.png

Credentials for Bahmni Lite

Service/DBVariablesComments
OpenMRS/Bahmni UI & AtomfeedOPENMRS_ATOMFEED_USER OPENMRS_ATOMFEED_PASSWORDFollow detailed steps for OpenMRS/Bahmni
OpenMRS Database(MySQL)OPENMRS_DB_USERNAME OPENMRS_DB_PASSWORD MYSQL_ROOT_PASSWORDUpdate the credentials on .env file before doing first installation.
Carter UI & AtomfeedUI-CRATER_ADMIN_EMAIL CRATER_ADMIN_PASSWORDAtomfeed-CRATER_USERNAME CRATER_PASSWORDThis creds will be used to login crater UI & Atomfeed. Update the credentials on .env file before doing first installation.Both UI & Atomfeed creds should be same.
Crater DBCRATER_DB_USERNAME CRATER_DB_USERNAMEUpdate the credentials on .env file before doing first installation.
Crater Atomfeed DBCRATER_ATOMFEED_DB_USERNAME CRATER_ATOMFEED_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Reports DBREPORTS_DB_USERNAME REPORTS_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Metabase UIMETABASE_ADMIN_EMAIL METABASE_ADMIN_EMAILThis creds will be used to login Metabase UI, update the credentials on .env file before doing first installation.
Metabase DBMETABASE_DB_USER METABASE_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Mart DBMART_DB_USERNAME MART_DB_PASSWORDUpdate the credentials on .env file before doing first installation.

Credentials for Bahmni Standard

Service/DBVariablesComments
OpenMRS/Bahmni UI & AtomfeedOPENMRS_ATOMFEED_USER OPENMRS_ATOMFEED_PASSWORDFollow detailed steps for OpenMRS/Bahmni
OpenMRS DatabaseOPENMRS_DB_USERNAME OPENMRS_DB_PASSWORD MYSQL_ROOT_PASSWORDUpdate the credentials on .env file before doing first installation.
OpenElis UI & AtomfeedOPENELIS_ATOMFEED_USER OPENELIS_ATOMFEED_PASSWORDFollow detailed steps for OpenELIS
OpenElis DBOPENELIS_DB_USER OPENELIS_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Odoo UI & AtomfeedODOO_ATOMFEED_USER ODOO_ATOMFEED_PASSWORDFollow detailed steps for Odoo
Odoo DBODOO_DB_USER ODOO_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Pacs DBDCM4CHEE_DB_USERNAME DCM4CHEE_DB_PASSWORD PACS_DB_ROOT_PASSWORDUpdate the credentials on .env file before doing first installation.
Pacs Integration DBODOO_DB_USER ODOO_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Reports DBREPORTS_DB_USERNAME REPORTS_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Metabase UIMETABASE_ADMIN_EMAIL METABASE_ADMIN_PASSWORDThis creds will be used to login Metabase UI, update the credentials on .env file before doing first installation.
Metabase DBMETABASE_DB_USER METABASE_DB_PASSWORDUpdate the credentials on .env file before doing first installation.
Mart DBMART_DB_USERNAME MART_DB_PASSWORDUpdate the credentials on .env file before doing first installation.

Steps needed for each Service

OpenMRS/Bahmni

For OpenMRS / Bahmni EMR UI, change credentials by:

  1. Login into OpenMRS Admin UI (https://<ip>/openmrs/) with admin rights (superman user)
  2. Go to Administration &rarr; Manage User
  3. Change the creds for admin users: superman and admin
  4. Save/Exit/Logout and login again to check the creds work as expected.
  5. Update .env file with new creds for variables OPENMRS_ATOMFEED_USER and OPENMRS_ATOMFEED_PASSWORD

OpenELIS

For OpenELIS (Lab), follow these steps after login with admin user admin: Lab Security and Access Control (OpenELIS) and then update the .env file with new creds for variables OPENELIS_ATOMFEED_USER and OPENELIS_ATOMFEED_PASSWORD

Crater

  1. Login into the crater as admin (superman@bahmni.org).
  2. Go to Settings &rarr; Account Setting
  3. Change the password to a new one
  4. Save/Exit/Logout and login again to check the creds work as expected.
  5. Update the .env file with new creds for variables CRATER_ADMIN_EMAIL, CRATER_ADMIN_PASSWORD,CRATER_USERNAME and CRATER_PASSWORD

Odoo

  1. Login to Odoo with user admin and change the password.
  2. Save/Exit/Logout and login again to check the creds work as expected.
  3. Update the .env file with new creds for variables ODOO_ATOMFEED_USER and ODOO_ATOMFEED_PASSWORD

Metabase Analytics

  1. Login to metabase with admin@mybahmni.org
  2. Go to Settings &rarr; Admin Settings &rarr; People (https://<ip>/metabase/admin/people)
  3. Click on the &ldquo;&hellip;&rdquo; (3 dots) on the right side of Admin user, and reset the password.
  4. Save/Exit/Logout and login again to check the creds work as expected.
  5. Update .env file with new creds for METABASE_ADMIN_EMAIL and METABASE_ADMIN_PASSWORD.
  6. Also, ensure you have set up the correct permissions for other users: Securing Metabase & Bahmni Mart Analytics Tool

DCM4chee

  1. Login to Dcm4chee service with admin user: admin
  2. Change password.
  3. Save/Exit/Logout and login again to check the creds work as expected. We don't have to update anything on .env file.

Databases

  1. Note, the app services like openmrs, or crater, or odoo should be shut down, before changing DB service credentials, to ensure none of the services are connected to DB.
  2. For databases you will need to ssh/exec into each container (docker compose exec <db-servicename>, and then using mysql or pgsql command, connect and then rename. To connect to a database see: Connecting to various databases.
  3. To reset password for MySQL see: https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html and for Postgres see: https://www.geeksforgeeks.org/postgresql-reset-password-for-postgres/ (step 4 onwards).
  4. Once done, then update the .env file with new DB credentials and restart the service.
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗