forked from orthanc-server/orthanc-setup-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.89 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "2"
services:
orthanc:
image: osimis/orthanc
depends_on: [orthanc-auth-service]
restart: unless-stopped
ports: ["8042:8042"]
volumes: ["orthanc-storage:/var/lib/orthanc/db:Z"]
environment:
ORTHANC__NAME: "Orthanc-for-auth-plugin-demo"
OSIMIS_WEB_VIEWER1_PLUGIN_ENABLED: "true"
# disable basic authentication since we use the auth plugin
ORTHANC__AUTHENTICATION_ENABLED: "false"
# you must enable the StoneViewer and the DicomWeb plugins
STONE_WEB_VIEWER_PLUGIN_ENABLED: "true"
DICOM_WEB_PLUGIN_ENABLED: "true"
# the webservice to call to get authorizations
ORTHANC__AUTHORIZATION__WEB_SERVICE: "http://orthanc-auth-service:8000/"
# the key of the HTTP header that is used to identify the user
# Although the token is passed as an url parameters to the viewer,
# internally, it is transformed into a HTTP header
ORTHANC__AUTHORIZATION__TOKEN_HTTP_HEADERS: |
["token", "Authorization"]
# a list of resources that are accessible to everyone
ORTHANC__AUTHORIZATION__UNCHECKED_RESOURCES: |
[
"/osimis-viewer/config.js",
"/system"
]
# a list of folders that are accessible to everyone
ORTHANC__AUTHORIZATION__UNCHECKED_FOLDERS: |
[
"/plugins",
"/app/",
"/wsi/app/",
"/osimis-viewer/app/",
"/osimis-viewer/languages/",
"/stone-webviewer/"
]
# don't check authorization at study/series/instances level but only at patient level
ORTHANC__AUTHORIZATION__UNCHECKED_LEVELS: |
["study", "series", "instances"]
VERBOSE_ENABLED: "true"
orthanc-auth-service:
build: node-auth-server
# you should not expose port outside the docker network (only Orthanc needs to access it)
ports: ["8000:8000"]
restart: unless-stopped
volumes:
orthanc-storage: