今天要來介紹如何使用docker-compose建立PACS系統,這次的範例是以Dcm4chee來建立PACS。
Dcm4chee是使用Java開發的開源專案,目前最新版已經到5.32.0了,搭配其他組件後能作為PACS系統使用。
使用docker-compose建立PACS系統測試站需要先到Github拉取docker-compose.yml
到以下網址下載docker-compose.yml
https://github.com/dcm4che-dockerfiles/dcm4chee-arc-psql/blob/master/docker-compose.yml
version: "3"
services:
ldap:
image: dcm4che/slapd-dcm4chee:2.6.6-33.0
ports:
- "389:389"
- "636:636"
environment:
ARCHIVE_HOST: gunter-nb
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:16.3-33
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.0
ports:
- "8080:8080"
- "8443:8443"
- "9990:9990"
- "9993:9993"
- "8787:8787"
- "11112:11112"
- "2762:2762"
- "2575:2575"
- "12575:12575"
environment:
WILDFLY_ADMIN_USER: admin
WILDFLY_ADMIN_PASSWORD: admin
WILDFLY_DEPLOY_UI: "false"
WILDFLY_PACSDS_USE_CCM: "false"
POSTGRES_DB: pacsdb
POSTGRES_USER: pacs
POSTGRES_PASSWORD: pacs
WILDFLY_CHOWN: /storage
WILDFLY_WAIT_FOR: ldap:389 db:5432
JAVA_OPTS: -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n
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
ui:
image: dcm4che/dcm4chee-arc-psql:5.33.0
ports:
- "18080:18080"
- "18443:18443"
- "19990:19990"
- "19993:19993"
- "8888:8888"
environment:
WILDFLY_ADMIN_USER: admin
WILDFLY_ADMIN_PASSWORD: admin
WILDFLY_DEPLOY_UI: only
WILDFLY_PACSDS_USE_CCM: "false"
DCM4CHEE_ARC_URLS: http://gunter-nb:8080/dcm4chee-arc
HTTP_PORT: 18080
HTTPS_PORT: 18443
MANAGEMENT_HTTP_PORT: 19990
MANAGEMENT_HTTPS_PORT: 19993
WILDFLY_WAIT_FOR: arc:8080
JAVA_OPTS: -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:8888,server=y,suspend=n
depends_on:
- arc
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/local/dcm4chee-arc/ui:/opt/wildfly/standalone
下載好後將服務啟起來
docker-compose up
如果執行過程中沒報錯,輸入以下網址後會看到
http://127.0.0.1:18080/dcm4chee-arc/ui2/en/
出現這個畫面後就代表服務啟動成功啦,這時就可以做一些簡單的測試!!!