我正在使用 docker-compose 文件运行 Orthanc Server,如下所示
version: '3.1'
services:
orthanc:
image: jodogne/orthanc:1.9.7
command: /run/secrets/
container_name: orthanc1
ports:
- "4242:4242"
secrets:
- orthanc.json
environment:
- ORTHANC_NAME=MYNAME
secrets:
orthanc.json:
file: orthanc.json
orthanc.json文件如下
{
"Name" : "${MYNAME} in Docker Compose",
"RemoteAccessAllowed" : true,
"DicomAet" : "MYNAME",
"DicomAlwaysAllowFind" : true,
"DicomAlwaysAllowGet" : true,
"DicomCheckModalityHost" : false
}
此设置工作正常,但是我想添加链接中提到的 TLS 身份验证:- https://book.orthanc-server.com/faq/dicom-tls.html
现在,当我使用命令更改上面链接中提到的 json 配置时,docker-compose up
我收到一条错误消息Inexistent file Orthanc.key
。我查找了该问题并找到了一篇文章https://groups.google.com/g/orthanc-users/c/ZUUECc9AzaU但这里的解决方案适用于 ssl 连接,并且在系统上安装 Orthanc 服务器并且密钥路径为相对于可执行文件。
寻找有关如何修改 docker-compose.yml 和 orthanc.json 文件的建议,以便当我在 docker 容器中运行 Orthanc 服务器时,我可以使用我的 linux 机器上的 echoscu 命令使用 TLS 身份验证。即使用证书和密钥对(echoscu -v -aet MYNAME localhost 4242 +tls dcmtk.key dcmtk.crt +cf orthanc.crt
类似于此)