docker-orthanc/docker-compose.yml
2023-04-26 10:58:17 +08:00

48 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"