48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
version: '3.6'
|
||
|
||
services:
|
||
orthanc:
|
||
image: osimis/orthanc:20.11.2
|
||
container_name: orthanc
|
||
depends_on:
|
||
- postgres
|
||
restart: always
|
||
ports:
|
||
- '8042:8042'
|
||
- '4242:4242'
|
||
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
|
||
logging:
|
||
driver: "json-file"
|
||
options:
|
||
max-size: "800m"
|
||
|
||
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
|
||
logging:
|
||
driver: "json-file"
|
||
options:
|
||
max-size: "800m"
|
||
|
||
|