forked from rih3d/cirr-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
139 lines (121 loc) · 3.43 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: passw0rd
PGDATA: /var/lib/postgresql/data
volumes:
- data:/var/lib/postgresql
- logs:/var/log/postgresql
# *.sh mounted in initdb.d will be sourced on run, should check to see if configured
# Drop XNAT if necessary, add orthanc and orthanc_recv
#- ./bootstrap-postgres.sh:/docker-entrypoint-initdb.d/bootstrap.sh:ro
# Interacting with the database
# $ docker exec -it cirrdocker_db_1 sh -c 'echo "ALTER USER xnat WITH PASSWORD '\''my_xnat_pword'\'';" | exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U ${POSTGRES_USER}'
orthanc:
# See <https://github.com/jodogne/OrthancDocker>
# ----------------------------
# Churn if postgres is not responsive
restart: on-failure:10
image: jodogne/orthanc-plugins
command: ["--logdir=/var/log/orthanc", "/etc/orthanc/"]
ports:
- "8080:8042"
- "4242:4242"
links:
- postgres
# - xnat
volumes:
- ./orthanc.shadow.json:/etc/orthanc/orthanc.json:ro
- data:/var/lib/orthanc/db
- logs:/var/log/orthanc
environment:
SITE_NAME: "Orthanc"
DICOM_AET: "ORTHANC"
# COMPRESSION: "true"
USERS: '{
"admin": "passw0rd",
"orthanc": "orthanc"
}'
DICOM_MODALITIES: '{
"sample_modality" : [ "STORESCP", "localhost", 2000 ]
}'
ORTHANC_PEERS: '{
"sample_peer" : [ "http://localhost:8043/", "alice", "alicePassword" ]
}'
DB_NAME: "orthanc"
DB_USER: "orthanc"
DB_PASSWORD: "passw0rd"
orthanc-receiver:
# ----------------------------
# Should EXTEND orthanc, but then can't include links or deps in orthanc
image: jodogne/orthanc-plugins
ports:
- "8042:4380"
- "4242:4342"
volumes:
- ./orthanc_recv.shadow.json:/etc/orthanc/orthanc.json:ro
- data:/var/lib/orthanc_recv/db
- logs:/var/log/orthanc_recv
links:
- postgres
- orthanc
environment:
SITE_NAME: "Orthanc Receiver"
DICOM_AET: "ORTHANC_RECV"
COMPRESSION: "false"
FORWARD_TO: "orthanc"
LOG_EXPORTED: "false"
USERS: '{
"admin": "passw0rd",
"orthanc": "orthanc"
}'
DICOM_MODALITIES: '{
"sample_modality" : [ "STORESCP", "localhost", 2000 ]
}'
ORTHANC_PEERS: '{
"sample_peer" : [ "http://localhost:8043/", "alice", "alicePassword" ]
}'
DB_NAME: "orthanc_recv"
DB_USER: "orthanc"
DB_PASSWORD: "passw0rd"
xnat:
# A configured local xnat template has to be built separately and tagged "xnat-builder"
# I used <https://github.com/chaselgrove/xnat-docker>, complete through the final step
# ----------------------------
build: xnat-docker
ports:
- "8080:8080" # HTTP
- "8104:8042" # DICOM
volumes:
- data:/data/xnat
links:
- postgres
- xnat-repo:repo
environment:
XNAT_DIR: "/data/xnat"
XNAT_URL: "http://dockerengine:8080"
XNAT_NAME: "XNAT"
DB_USER: "xnat"
DB_PASSWORD: "passw0rd"
DB_NAME: "xnat165"
xnat-repo:
image: xnat-repo
splunk:
image: outcoldman/splunk:latest
hostname: splunk
volumes:
- data:/opt/splunk/etc
- data:/opt/splunk/var
volumes_from:
- postgres
- orthanc
# - orthanc-receiver
- xnat
ports:
- "1514:1514" # Syslog
- "1580:8000" # HTTP
# - Unk API?
environment:
SPLUNK_START_ARGS: "--accept-license"
# Need to add log directories to monitor as well...