# oh-container-deploy **Repository Path**: newtouch_code/oh-container-deploy ## Basic Information - **Project Name**: oh-container-deploy - **Description**: 开源医疗-容器部署方案 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 11 - **Created**: 2024-06-28 - **Last Updated**: 2025-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 开源医疗 配置文件模板工具 开源医疗致力于以开源模式服务全国百万医疗卫生机构,助力中国普惠医疗数字化!欢迎更多生态合作伙伴加入和推广,共建开源医疗大生态。 ## 编译方式 ```shell go build #如果你在 macOS 或 Linux 上开发,但想要生成 Windows 的 .exe 文件,则可以使用交叉编译。 GOOS=windows GOARCH=amd64 go build -o openhis-config.exe ``` ## 使用方式 1. 克隆本项目,或下载本项目完整压缩包 ```shell git clone https://gitee.com/newtouch_code/oh-container-deploy.git ``` 2. 编辑 [variable.yaml](variable.yaml) 3. 在`Windows PowerShell`执行 [openhis-config.exe](openhis-config-temp.exe) ```shell PS C:\Users\mohaijiang\GolandProjects\openhis-config-temp> .\openhis-config.exe 开始生成配置文件 61.172.179.6,30288 Directory: ./config Directory: config\ApiManage File temp: config\ApiManage\appsettings.json.tmpl Template rendered and output file created. Directory: config\AuthCenterAPI File temp: config\AuthCenterAPI\appsettings.json.tmpl Template rendered and output file created. Directory: config\BaeAPI Directory: config\BaeAPI\Configs File temp: config\BaeAPI\Configs\database.config.tmpl Template rendered and output file created. File temp: config\BaeAPI\Configs\system.config.tmpl Template rendered and output file created. Directory: config\Base Directory: config\Base\Configs File temp: config\Base\Configs\database.config.tmpl Template rendered and output file created. File temp: config\Base\Configs\system.config.tmpl Template rendered and output file created. Directory: config\CIS Directory: config\CIS\Configs File temp: config\CIS\Configs\database.config.tmpl Template rendered and output file created. File temp: config\CIS\Configs\system.config.tmpl Template rendered and output file created. Directory: config\CISAPI Directory: config\CISAPI\Configs File temp: config\CISAPI\Configs\database.config.tmpl Template rendered and output file created. File temp: config\CISAPI\Configs\system.config.tmpl Template rendered and output file created. Directory: config\EMR Directory: config\EMR\Configs File temp: config\EMR\Configs\database.config.tmpl Template rendered and output file created. File temp: config\EMR\Configs\system.config.tmpl Template rendered and output file created. Directory: config\Herp Directory: config\Herp\Configs File temp: config\Herp\Configs\database.config.tmpl Template rendered and output file created. File temp: config\Herp\Configs\system.config.tmpl Template rendered and output file created. Directory: config\JobService File temp: config\JobService\appsettings.json.tmpl Template rendered and output file created. Directory: config\MRMS Directory: config\MRMS\Configs File temp: config\MRMS\Configs\database.config.tmpl Template rendered and output file created. File temp: config\MRMS\Configs\system.config.tmpl Template rendered and output file created. Directory: config\MRQC Directory: config\MRQC\Configs File temp: config\MRQC\Configs\database.config.tmpl Template rendered and output file created. File temp: config\MRQC\Configs\system.config.tmpl Template rendered and output file created. Directory: config\OR Directory: config\OR\Configs File temp: config\OR\Configs\database.config.tmpl Template rendered and output file created. File temp: config\OR\Configs\system.config.tmpl Template rendered and output file created. Directory: config\PDS Directory: config\PDS\Configs File temp: config\PDS\Configs\database.config.tmpl Template rendered and output file created. File temp: config\PDS\Configs\system.config.tmpl Template rendered and output file created. Directory: config\PDSAPI Directory: config\PDSAPI\Configs File temp: config\PDSAPI\Configs\database.config.tmpl Template rendered and output file created. File temp: config\PDSAPI\Configs\system.config.tmpl Template rendered and output file created. Directory: config\Report File temp: config\Report\appsettings.json.tmpl Template rendered and output file created. Directory: config\Sett Directory: config\Sett\Configs File temp: config\Sett\Configs\database.config.tmpl Template rendered and output file created. File temp: config\Sett\Configs\system.config.tmpl Template rendered and output file created. Directory: config\SettAPI Directory: config\SettAPI\Configs File temp: config\SettAPI\Configs\database.config.tmpl Template rendered and output file created. File temp: config\SettAPI\Configs\system.config.tmpl Template rendered and output file created. Directory: config\Union File temp: config\Union\appsettings.json.tmpl Template rendered and output file created. Directory: config\his.baseapi File temp: config\his.baseapi\appsettings.json.tmpl Template rendered and output file created. ``` 4. 高阶使用方式 ```shell ./openhis-config.exe replace -f ./variable.yaml ``` 5. 在生成的[config](config)目录下,找到对应的模块配置文件,复制到对应的ISS模块的配置文件夹中 ## [variable.yaml](variable.yaml) 配置文件说明 ```yaml ## 数据库连接地址 DatabaseHost: 61.172.179.6,30288 ## 数据库用户名 DatabaseUser: sa ## 数据库密码 DatabasePassword: Abcd1234 ## redis 连接地址 RedisHost: 61.172.179.6:32079 ## redis 密码 RedisPassword: newtouch ## 服务暴露IP(公网IP,如不需要公网映射,直接填写内网IP即可): PublicIP: 127.0.0.1 ## 内网(局域网)IP LanIP: 127.0.0.1 Services: ## 公网服务端口 PublicWebPort: ## 静态资源公网端口 Static: 8014 ## 报表服务公网端口 Report: 8000 ## 后台管理公网端口 Base: 8001 ## 结算管理公网端口 Sett: 8002 ## 医护协同公网端口 Cis: 8003 ## 药房药库公网端口 Pds: 8004 ## 电子病例公网端口 Emr: 8005 ## 手术管理公网端口 Or: 8006 ## 医疗资源管理公网端口 Herp: 8007 ## 病案管理公网端口 Mrms: 8008 ## 病例质控管理公网端口 Mrqc: 8009 ## 任务调度公网端口 JobService: 8010 ## 通知中心公网端口 NoticeCenter: 8011 ## 认证接口公网端口 AuthCenterAPI: 8015 ## 统一api公网端口 ApiManage: 8016 ## 基础api公网端口 HisBaseAPI: 8017 ## 联合工作站公网端口 Union: 8018 ## 内网服务端口 LanWebPort: ## 静态资源内网端口 Static: 8014 ## 报表服务内网端口 Report: 8000 ## 后台管理内网端口 Base: 8001 ## 结算管理内网端口 Sett: 8002 ## 医护协同内网端口 Cis: 8003 ## 药房药库内网端口 Pds: 8004 ## 电子病例内网端口 Emr: 8005 ## 手术管理内网端口 Or: 8006 ## 医疗资源管理内网端口 Herp: 8007 ## 病案管理内网端口 Mrms: 8008 ## 病例质控管理内网端口 Mrqc: 8009 ## 任务调度公网端口 JobService: 8010 ## 通知中心公网端口 NoticeCenter: 8011 ## 联合工作站内网端口 Union: 8018 ## 后台管理API 内网端口 BaseAPI: 7001 ## 结算管理API 内网端口 SettAPI: 7002 ## 医护协同API 内网端口 CisAPI: 7003 ## 药房药库API 内网端口 PdsAPI: 7004 ## 手术管理API 内网端口 OrAPI: 7006 ## 认证中心API 内网端口 AuthCenterAPI: 8015 ## 统一API 内网端口 ApiManage: 8016 ## 基础API 内网端口 HisBaseAPI: 8017 ## 病例编辑器 内网端口 EmrEdit: 8020 ``` ## 许可证信息 本项目受Apache License 2.0保护。这意味着您可以自由使用、复制、修改和分发此软件,前提是您遵守许可证条款。有关完整的许可证文本,请参阅本项目根目录下的 LICENSE 文件。 ### 版权声明 版权所有 2024 武汉新致数字科技有限公司。保留所有权利。