Bahmni Docker 기본 자격 증명 변경
단계별 상위 수준 요약
실행하는 각 서비스의 사용자 이름과 암호가 안전한지 확인하십시오. OpenMRS, Crater, Metabase, Odoo, DCM4chee, OpenELIS 등 모든 서비스와 관련 데이터베이스 자격 증명을 확인합니다.
서비스와 데이터베이스의 .env 자격 증명을 업데이트해야 합니다. 일부 서비스는 실행한 상태에서 관리자 영역에 로그인하여 기본 자격 증명을 변경해야 합니다. 그 후 서비스를 내리고 새 자격 증명으로 .env 파일을 업데이트한 다음 다시 시작합니다.
전체 절차는 약 30~45분 정도 걸립니다. 변경할 암호를 찾으려면 .env 파일에서 PASSWORD로 끝나는 모든 변수를 검색합니다. 샘플 명령: cat .env | grep PASSWORD

Bahmni Lite 자격 증명
| Service/DB | Variables | Comments |
|---|---|---|
| OpenMRS/Bahmni UI & Atomfeed | OPENMRS_ATOMFEED_USER OPENMRS_ATOMFEED_PASSWORD | Follow detailed steps for OpenMRS/Bahmni |
| OpenMRS Database(MySQL) | OPENMRS_DB_USERNAME OPENMRS_DB_PASSWORD MYSQL_ROOT_PASSWORD | Update the credentials on .env file before doing first installation. |
| Carter UI & Atomfeed | UI-CRATER_ADMIN_EMAIL CRATER_ADMIN_PASSWORDAtomfeed-CRATER_USERNAME CRATER_PASSWORD | This 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 DB | CRATER_DB_USERNAME CRATER_DB_USERNAME | Update the credentials on .env file before doing first installation. |
| Crater Atomfeed DB | CRATER_ATOMFEED_DB_USERNAME CRATER_ATOMFEED_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Reports DB | REPORTS_DB_USERNAME REPORTS_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Metabase UI | METABASE_ADMIN_EMAIL METABASE_ADMIN_EMAIL | This creds will be used to login Metabase UI, update the credentials on .env file before doing first installation. |
| Metabase DB | METABASE_DB_USER METABASE_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Mart DB | MART_DB_USERNAME MART_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
Bahmni Standard 자격 증명
| Service/DB | Variables | Comments |
|---|---|---|
| OpenMRS/Bahmni UI & Atomfeed | OPENMRS_ATOMFEED_USER OPENMRS_ATOMFEED_PASSWORD | Follow detailed steps for OpenMRS/Bahmni |
| OpenMRS Database | OPENMRS_DB_USERNAME OPENMRS_DB_PASSWORD MYSQL_ROOT_PASSWORD | Update the credentials on .env file before doing first installation. |
| OpenElis UI & Atomfeed | OPENELIS_ATOMFEED_USER OPENELIS_ATOMFEED_PASSWORD | Follow detailed steps for OpenELIS |
| OpenElis DB | OPENELIS_DB_USER OPENELIS_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Odoo UI & Atomfeed | ODOO_ATOMFEED_USER ODOO_ATOMFEED_PASSWORD | Follow detailed steps for Odoo |
| Odoo DB | ODOO_DB_USER ODOO_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Pacs DB | DCM4CHEE_DB_USERNAME DCM4CHEE_DB_PASSWORD PACS_DB_ROOT_PASSWORD | Update the credentials on .env file before doing first installation. |
| Pacs Integration DB | ODOO_DB_USER ODOO_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Reports DB | REPORTS_DB_USERNAME REPORTS_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Metabase UI | METABASE_ADMIN_EMAIL METABASE_ADMIN_PASSWORD | This creds will be used to login Metabase UI, update the credentials on .env file before doing first installation. |
| Metabase DB | METABASE_DB_USER METABASE_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
| Mart DB | MART_DB_USERNAME MART_DB_PASSWORD | Update the credentials on .env file before doing first installation. |
서비스별 필수 단계
OpenMRS/Bahmni
OpenMRS/Bahmni EMR UI 자격 증명은 다음과 같이 변경합니다.
- 관리자 권한(superman 사용자)으로 OpenMRS Admin UI(https://<ip>/openmrs/)에 로그인합니다.
- Administration → Manage User로 이동합니다.
- 관리자 사용자 superman과 admin의 자격 증명을 변경합니다.
- 저장하고 로그아웃한 뒤 다시 로그인하여 정상 작동을 확인합니다.
- OPENMRS_ATOMFEED_USER와 OPENMRS_ATOMFEED_PASSWORD의 새 값으로 .env를 업데이트합니다.
OpenELIS
OpenELIS(Lab)에서는 관리자 사용자 admin으로 로그인한 뒤 Lab Security and Access Control(OpenELIS) 절차를 따르고 OPENELIS_ATOMFEED_USER와 OPENELIS_ATOMFEED_PASSWORD의 새 값으로 .env를 업데이트합니다.
Crater
- 관리자(superman@bahmni.org)로 Crater에 로그인합니다.
- Settings → Account Setting으로 이동합니다.
- 새 암호로 변경합니다.
- 저장하고 로그아웃한 뒤 다시 로그인하여 정상 작동을 확인합니다.
- CRATER_ADMIN_EMAIL, CRATER_ADMIN_PASSWORD, CRATER_USERNAME, CRATER_PASSWORD의 새 값으로 .env를 업데이트합니다.
Odoo
- admin 사용자로 Odoo에 로그인하여 암호를 변경합니다. 저장하고 로그아웃한 뒤 다시 로그인하여 정상 작동을 확인합니다. ODOO_ATOMFEED_USER와 ODOO_ATOMFEED_PASSWORD의 새 값으로 .env를 업데이트합니다.
Metabase Analytics
- admin@mybahmni.org로 Metabase에 로그인합니다.
- Settings → Admin Settings → People(https://<ip>/metabase/admin/people)로 이동합니다.
- Admin 사용자 오른쪽의 ‘…’(점 3개)를 클릭하고 암호를 재설정합니다.
- 저장하고 로그아웃한 뒤 다시 로그인하여 정상 작동을 확인합니다.
- METABASE_ADMIN_EMAIL과 METABASE_ADMIN_PASSWORD의 새 값으로 .env를 업데이트합니다.
- Securing Metabase & Bahmni Mart Analytics Tool을 참고하여 다른 사용자의 권한도 올바르게 설정합니다.
DCM4chee
- 관리자 사용자 admin으로 DCM4chee 서비스에 로그인합니다. 암호를 변경하고 저장·로그아웃한 뒤 다시 로그인하여 정상 작동을 확인합니다. .env에서는 변경할 항목이 없습니다.
데이터베이스
- DB 자격 증명을 변경하기 전에 OpenMRS, Crater, Odoo 같은 앱 서비스를 중지하여 DB에 연결된 서비스가 없도록 합니다. 각 데이터베이스 컨테이너에 SSH/exec로 접속(docker compose exec <db-servicename>)한 뒤 MySQL 또는 pgsql 명령으로 연결하여 이름을 변경합니다. 연결 방법은 Connecting to various databases를 참조하십시오. MySQL 암호 재설정: https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html. Postgres 암호 재설정: https://www.geeksforgeeks.org/postgresql-reset-password-for-postgres/ 의 4단계 이후. 완료한 뒤 새 DB 자격 증명으로 .env를 업데이트하고 서비스를 다시 시작합니다.
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0