Skip to content

dcm4che ile dicom dosyalarını cloud storage yükleme (s3, blob storage, obs)

dicom nedir?

dicom (digital, imaging, and communications in medicine), tıbbi görüntülerin saklanması ve paylaşılması için kullanılan standart bir formattır. dcm4che ise açık kaynaklı bir pacs (picture archiving and communication system) çözümüdür ve dicom verilerini yönetmek için kullanılır.

dcm4che docker-compose.yml içeriği;

version: "3"
services:
  ldap:
    image: dcm4che/slapd-dcm4chee:2.6.7-33.1
    logging:
      driver: json-file
      options:
        max-size: "10m"
    ports:
      - "389:389"
    environment:
      STORAGE_DIR: /storage/fs1
    volumes:
      - /var/local/dcm4chee-arc/ldap:/var/lib/openldap/openldap-data
      - /var/local/dcm4chee-arc/slapd.d:/etc/openldap/slapd.d
  db:
    image: dcm4che/postgres-dcm4chee:17.1-33
    logging:
      driver: json-file
      options:
        max-size: "10m"
    ports:
     - "5432:5432"
    environment:
      POSTGRES_DB: pacsdb
      POSTGRES_USER: pacs
      POSTGRES_PASSWORD: pacs
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/local/dcm4chee-arc/db:/var/lib/postgresql/data
  arc:
    image: dcm4che/dcm4chee-arc-psql:5.33.1
    logging:
      driver: json-file
      options:
        max-size: "10m"
    ports:
      - "8080:8080"
      - "8443:8443"
      - "9990:9990"
      - "9993:9993"
      - "11112:11112"
      - "2762:2762"
      - "2575:2575"
      - "12575:12575"
    environment:
      POSTGRES_DB: pacsdb
      POSTGRES_USER: pacs
      POSTGRES_PASSWORD: pacs
      WILDFLY_CHOWN: /storage
      WILDFLY_WAIT_FOR: ldap:389 db:5432
    depends_on:
      - ldap
      - db
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      - /var/local/dcm4chee-arc/wildfly:/opt/wildfly/standalone
      - /var/local/dcm4chee-arc/storage:/storage
docker compose up -d

Bu kısımda ise, storage ayarlarını set edebiliriz.

Storage ID:   <example-name>
Storage URI : jclouds:s3:https://<endpoint>

en altta bulunan storage property kısmında ise,

identity=<access-key>
credential=<secret-key>
container=<bucket-name>
containerExists=true
jclouds.trust-all-certs=true
jclouds.relax-hostname=true
jclouds.s3.virtual-host-buckets=true
jclouds.strip-expect-header=true

ile ilerlenebilir.

ek

docker exec -it dcm4che-arc-1 bash

tail -f /opt/wildfly/standalone/log/server.log

Published ingeneralhuawei cloud

Comments are closed.