docker-orthanc/docker-compose.yml

54 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2023-08-21 13:45:07 +08:00
version: "3.6"
2023-04-26 10:58:17 +08:00
services:
2023-08-21 13:45:07 +08:00
postgres:
image: postgres:13.1
container_name: postgres
restart: always
ports:
- "5432:5432"
volumes:
# postgrel->data 挂载出来
- ${POSTGRES_DATA_MNT}:${PGDATA}
environment:
- PGDATA=${PGDATA}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- TZ=Asia/Shanghai
pacs:
2023-04-26 10:58:17 +08:00
image: osimis/orthanc:20.11.2
container_name: orthanc
depends_on:
- postgres
restart: always
ports:
2023-08-21 13:45:07 +08:00
- "8042:8042"
- "4242:4242"
2023-04-26 10:58:17 +08:00
volumes:
# 挂载orthanc.json配置
- ${ORTHANC_CONFIG}:/etc/orthanc/orthanc.json:ro
# 不使用 postgre 存储 dicom挂载出来到 ${ORTHANC_DB_MNT},更健康
- ${ORTHANC_DB_MNT}:/var/lib/orthanc/db
environment:
- DICOM_WEB_PLUGIN_ENABLED=true
- POSTGRESQL_PLUGIN_ENABLED=true
- TZ=Asia/Shanghai
command: /etc/orthanc/orthanc.json
2023-08-21 13:45:07 +08:00
ohifv3:
image: ohif/viewer
container_name: ohif
2023-04-26 10:58:17 +08:00
restart: always
ports:
2023-08-21 13:45:07 +08:00
- "3000:80"
2023-04-26 10:58:17 +08:00
environment:
2023-08-21 13:45:07 +08:00
- APP_CONFIG:/usr/share/nginx/html/app-config.js
volumes:
- ./ohifv3/ohif.conf:/etc/nginx/conf.d/default.conf:ro
- ./ohifv3/app-config.js:/usr/share/nginx/html/app-config.js:ro
- ./ohifv3/logo.png:/usr/share/nginx/html/logo.png:ro
depends_on:
- pacs