Docker로 Bahmni 빠르게 시작하기
Docker 및 Docker Compose 설치
공식 안내에 따라 Docker Compose를 설치할 수 있습니다.
Bahmni는 Docker Compose 2.12.0에서 테스트되었습니다. 이전 docker-compose를 사용한다면 최신 버전으로 업그레이드하십시오. docker compose version으로 버전을 확인합니다.
:desktop:1f5a5🖥️#FFFAE6시스템 메모리 요구사항
Linux 배포판에서는 Docker가 호스트에서 사용 가능한 메모리를 사용합니다.
사전 요구사항
- 안정 버전 Git을 설치합니다. 운영체제에 맞는 최신 안정 버전 docker와 docker compose를 설치합니다. bahmni-docker GitHub 저장소를 복제합니다.
Bahmni 배포판에는 LITE와 STANDARD가 있습니다. 차이점은 관련 문서를 참조하십시오.
Bahmni Lite v1.0.0 실행
Bahmni Lite는 무거운 HIMS가 필요하지 않고 사용하기 쉬운 EMR과 청구 소프트웨어를 원하는 의원 및 소규모 병원용 경량 오픈소스 버전입니다. Bahmni EMR UI, OpenMRS, Crater로 실행됩니다.
# Clone the Bahmni docker repo using SSH keys
git clone git@github.com:Bahmni/bahmni-docker.git
# If the above command gives error, use the HTTPs version of the command as follows:
git clone https://github.com/Bahmni/bahmni-docker.git
cd bahmni-docker/bahmni-lite
# Edit the .env file, and make the following changes
# 1. Change `COMPOSE_PROFILES=bahmni-lite` (or run with default which is `emr`)
# 2. Change `TZ` to your desired timezone (or run with the default which is `UTC`).
# 3. For remote server (if not running on localhost) for crater:
# write the IP address or domain name in the following properties (instead of localhost):
# CRATER_APP_URL, CRATER_SANCTUM_STATEFUL_DOMAINS and CRATER_SESSION_DOMAIN
# Pull latest images
docker compose pull
# Now start docker (detached mode)
docker compose up -d이제 https://localhost/ 에서 Bahmni LITE에 접근할 수 있습니다. 자체 서명 인증서를 사용하므로 브라우저 경고가 나타날 수 있습니다. 신뢰 저장소에 없는 루트 기관이 서명한 인증서에 대한 일반 경고이므로 예외를 추가해 계속할 수 있습니다. Chrome에서는 키보드로 thisisunsafe(공백 없음)를 입력하는 방법도 있습니다.
Bahmni Standard 실행
Bahmni Standard는 EMR(Bahmni UI와 OpenMRS), OpenELIS, Odoo, PACS를 포함한 병원용 전체 버전입니다.
git clone git@github.com:Bahmni/bahmni-docker.git
cd bahmni-docker/bahmni-standard
# Change `COMPOSE_PROFILES=bahmni-standard` in the .env file (or run with default which is just `emr`)
# Pull latest images
docker compose pull
# Now start docker (detached mode)
docker compose up -d
# File Permissions Issue with Odoo
In some hosts Odoo 16 might fail to start throwing a permission denied error when using DB backup image. Run this command the first time.
docker compose exec -it --user root odoo chown -R odoo:odoo /var/lib/odoo/filestore && docker compose restart odoo이제 https://localhost/ 에서 Bahmni에 접근할 수 있습니다.
최초 설정 단계
Odoo Docker와 PACS Docker에는 간단한 일회성 설정이 필요합니다. 관련 문서를 확인하고 문제가 생기면 문제 해결 문서 또는 Bahmni Slack #community 채널을 이용하십시오.
최신 이미지로 Bahmni 실행
.env.dev는 개발 중이어서 다소 불안정할 수 있는 latest 이미지를 참조합니다. 최신 이미지로 Bahmni Lite를 실행하려면 Docker Compose 명령에 .env.dev 경로를 지정하거나 파일명을 .env로 바꿉니다. 시작 전에 docker pull로 로컬 이미지가 최신인지 확인하고 Docker Hub에서 새 버전을 가져오는 것이 좋습니다.
cd bahmni-docker/bahmni-lite (or) cd bahmni-docker/bahmni-standard
# Pull latest images
docker compose --env-file .env.dev pull
# Now start docker (run in detached mode)
docker compose --env-file .env.dev up -d
# You can also write this in one command as:
docker compose --env-file .env.dev pull && docker-compose --env-file .env.dev up -dBahmni EMR 실행(최소 구성)
Bahmni Docker Compose는 기본적으로 Bahmni를 시험하고 살펴볼 수 있는 최소 사양인 Bahmni EMR 구성 요소(profile=emr)를 시작합니다. bahmni-standard와 bahmni-lite 모두에 설정되어 있습니다.
git clone git@github.com:Bahmni/bahmni-docker.git
# to run bahmni-lite (for clinics/small hospitals)
cd bahmni-docker/bahmni-lite
docker compose up -d
# to go to standard bahmni (full hospital system with EMR, Lab, Odoo, Dcm4chee)
cd bahmni-docker/bahmni-standard
docker compose up -d특정 애플리케이션 실행
bahmni-standard와 bahmni-lite 외에 OpenELIS, Odoo, PACS, Crater, Metabase Analytics 등을 개별 실행하는 애플리케이션 프로필이 있습니다. Docker Compose Profiles 하위 문서를 참조하십시오.
Metabase 및 Bahmni Mart로 Bahmni Analytics 실행: Bahmni에는 SQL 데이터베이스에 연결해 보고서와 시각화를 만드는 오픈소스 Metabase BI 도구가 포함됩니다. 기본적으로 OpenMRS DB와 MART DB에 연결됩니다. Mart는 OpenMRS 데이터를 가져와 보고서 작성이 쉬운 형식으로 PostgreSQL martDB에 저장하는 분석 서비스입니다.
# From bahmni-lite/ or bahmni-standard/ subfolder,
# execute this command to bring up metabase, mart service and mart DB
docker compose --profile bahmni-mart up -dMetabase는 https://localhost/metabase 에서 접근합니다. 자격 증명은 .env의 METABASE_ADMIN_EMAIL과 METABASE_ADMIN_PASSWORD를 확인하십시오.
1
Bahmni Wiki · CC BY-SA 4.0