Skip to content

Commit

Permalink
chore: add orthanc config
Browse files Browse the repository at this point in the history
  • Loading branch information
madebydaniz committed Dec 1, 2023
1 parent 6ae2797 commit 3119074
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
10 changes: 7 additions & 3 deletions docker-compose.orthanc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ services:
container_name: ddev-${DDEV_SITENAME}-orthanc
hostname: ${DDEV_SITENAME}-orthanc
image: osimis/orthanc:latest
ports: ['4242:4242', '8042:8042']
ports:
- 4242:4242
- 8042
environment:
ORTHANC__NAME: ${DDEV_SITENAME}
ORTHANC__REGISTERED_USERS: |
{"orthanc": "orthanc"}
VIRTUAL_HOST: $DDEV_HOSTNAME
HTTP_EXPOSE: 8042
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
restart: always
volumes:
- '.:/mnt/ddev_config'
- 'orthanc-storage:/var/lib/orthanc/db:Z'
- ${DDEV_APPROOT}/.ddev/orthanc/scripts:/etc/share/orthanc/scripts
- ${DDEV_APPROOT}/.ddev/orthanc/config:/etc/orthanc
networks: [default, ddev_default]
healthcheck:
disable: true
Expand Down
10 changes: 6 additions & 4 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ pre_install_actions:
#ddev-nodisplay
#ddev-description:Pre-upgrade for older versions of add-on
for file in \
orthanc/config/orthanc.json \
orthanc/scripts/script.lua \
docker-compose.orthanc.yaml \
commands/host/orthanc; do
if [ -f $file ]; then
if ! grep "#ddev-generated" $file; then
echo "remove old style file $file"
rm $file
fi
echo "remove old style file $file"
rm $file
fi
done
project_files:
- docker-compose.orthanc.yaml
- commands/host/orthanc
- orthanc/config/orthanc.json
- orthanc/scripts/script.lua
15 changes: 15 additions & 0 deletions orthanc/config/orthanc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// #ddev-generated
{
"Name": "ORTHANC",
"StorageDirectory": "StorageORTHANC",
"DicomAet": "ORTHANC",
"DicomPort": 4242,
"HttpPort": 8042,
"LuaScripts": ["/etc/share/orthanc/scripts/script.lua"],
"Plugins": ["/usr/share/orthanc/plugins"],
"AuthenticationEnabled": true,
"RegisteredUsers": {
"orthanc": "orthanc"
},
"DicomModalities": {}
}
1 change: 1 addition & 0 deletions orthanc/scripts/script.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- #ddev-generated

0 comments on commit 3119074

Please sign in to comment.