storage-platform.yml 6.97 KB
Newer Older
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
version: '3'
services:

  keytray-db:
    image: mysql:5.5
    container_name: keytray-db
    environment:
      MYSQL_ROOT_PASSWORD: ${KEYTRAY_DATABASE_ROOT_PASSWORD}
      MYSQL_DATABASE: ${KEYTRAY_DATABASE_DB}
    networks:
      - snet-asclepios
    expose:
      - ${INTERNAL_KEYCLOAK_DB_PORT}
    volumes:
      - ../data/keytray-db:/var/lib/mysql

  keytray:
    image: registry.gitlab.com/asclepios-project/keytray_v2:0.0.6_http
    container_name: keytray
    depends_on:
      - keytray-db
    environment:
      PORT: ${KEYTRAY_PORT}
      DATABASE_IP: ${INTERNAL_KEYTRAY_DB_HOST}
      DATABASE_PORT: ${INTERNAL_KEYTRAY_DB_PORT}
      DATABASE_DB: ${KEYTRAY_DATABASE_DB}
      DATABASE_USERNAME: ${KEYTRAY_DATABASE_USER}
      DATABASE_PSW: ${KEYTRAY_DATABASE_ROOT_PASSWORD}
      KEYCLOAK_URL: ${KEYCLOAK_AUTH_ENDPOINT}
      KEYCLOAK_REALM: ${KEYCLOAK_REALM}
      KEYCLOAK_CLIENT: ${KEYCLOAK_RESOURCE}
      AZ_CALL_DISABLED: ${KEYTRAY_AZ_CALL_DISABLED}
      # AZ_SERVER_ENDPOINTS: ${INTERNAL_ABAC_SERVER_PDP_ENDPOINT}
      # AZ_CLIENT_TRUST_STORE_FILE: ${COMMON_TRUSTSTORE_FILE}
      # AZ_CLIENT_TRUST_STORE_PASSWORD: ${COMMON_TRUSTSTORE_PASSWORD}
    networks:
      - snet-asclepios
    expose:
      - ${KEYTRAY_PORT}
    ports:
      - ${KEYTRAY_PORT}:${KEYTRAY_PORT}
    volumes:
      - ../certs/common/common-truststore.p12:/etc/certs/common-truststore.p12

  sse-db:
    image: postgres:12
    container_name: sse-db
    environment:
      POSTGRES_USER: ${SSE_DB_USER}
      POSTGRES_PASSWORD: ${SSE_DB_PASSWORD}
      POSTGRES_DB: ${SSE_DB_NAME}
    expose:
      - ${INTERNAL_SSE_DB_PORT}
    networks:
      - snet-asclepios
    volumes:
      - ../data/sse-db:/var/lib/postgresql/data

  sse-server:
    image: registry.gitlab.com/asclepios-project/symmetric-searchable-encryption-server:0.6
    container_name: sse-server
    depends_on:
      - sse-db
    environment:
      DJANGO_LOGLEVEL: ${SSE_SERVER_DJANGO_LOGLEVEL}
      DJANGO_DEBUG: ${SSE_SERVER_DJANGO_DEBUG}
      DJANGO_SECRET_KEY: ${SSE_SERVER_DJANGO_SECRET_KEY}
      ALLOWED_HOSTS: "${APP_HOST_NAME} ${INTERNAL_SSE_SERVER_HOST}"
      DB_NAME: ${SSE_DB_NAME}
      DB_USER: ${SSE_DB_USER}
      DB_PASSWORD: ${SSE_DB_PASSWORD}
      DB_HOST: ${INTERNAL_SSE_DB_HOST}
      DB_PORT: ${INTERNAL_SSE_DB_PORT}
      TA_SERVER: ${INTERNAL_SSE_TA_BASE_URL}
      MINIO_URL: ${MINIO_HOST}:${MINIO_PORT}
      MINIO_ACCESS_KEY: ${MINIO_ROOT_USER}
      MINIO_SECRET_KEY: ${MINIO_ROOT_PASSWORD}
      MINIO_BUCKET_NAME: ${SSE_SERVER_MINIO_BUCKET_NAME}
      MINIO_SSL_SECURE: ${SSE_SERVER_MINIO_SSL_SECURE}
      MINIO_EXPIRE_GET: ${SSE_SERVER_MINIO_EXPIRE_GET}
      MINIO_EXPIRE_PUT: ${SSE_SERVER_MINIO_EXPIRE_PUT}
    expose:
p.jbowden's avatar
p.jbowden committed
83
      - ${INTERNAL_SSE_SERVER_PORT}
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
    networks:
      - snet-asclepios

  sse-ta-db:
    image: postgres:12
    container_name: sse-ta-db
    environment:
      POSTGRES_USER: ${SSE_TA_DB_USER}
      POSTGRES_PASSWORD: ${SSE_TA_DB_PASSWORD}
      POSTGRES_DB: ${SSE_TA_DB_NAME}
    expose:
      - ${INTERNAL_SSE_TA_DB_PORT}
    networks:
      - snet-asclepios
    volumes:
      - ../data/sse-ta-db:/var/lib/postgresql/data

  sse-ta:
    image: registry.gitlab.com/asclepios-project/sseta:0.5
    container_name: sse-ta
    depends_on:
      - sse-ta-db
    environment:
      DJANGO_LOGLEVEL: ${SSE_TA_DJANGO_LOGLEVEL}
      DJANGO_DEBUG: ${SSE_TA_DJANGO_DEBUG}
      DJANGO_SECRET_KEY: ${SSE_TA_DJANGO_SECRET_KEY}
      DB_NAME: ${SSE_TA_DB_NAME}
      DB_USER: ${SSE_TA_DB_USER}
      DB_PASSWORD: ${SSE_TA_DB_PASSWORD}
      DB_HOST: ${INTERNAL_SSE_TA_DB_HOST}
      DB_PORT: ${INTERNAL_SSE_TA_DB_PORT}
      HASH_LENGTH: ${SSE_TA_HASH_LENGTH}
      IV: ${SSE_TA_IV}
      MODE: ${SSE_TA_MODE}
      KS: ${SSE_TA_KS}
      TEEP_SERVER: ${INTERNAL_TEEP_SERVER_ENDPOINT}
      SGX: ${SSE_TA_SGX}
      ALLOWED_HOSTS: "${APP_HOST_NAME} ${INTERNAL_SSE_TA_HOST}"
    expose:
      - ${INTERNAL_SSE_TA_PORT}
    networks:
      - snet-asclepios

  minio:
    image: minio/minio
    container_name: minio
    entrypoint: >
      sh -c "mkdir -p /data/snet
      && minio server /data"
    environment:
      MINIO_ROOT_USER: ${MINIO_ROOT_USER}
      MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
    expose:
      - ${MINIO_PORT}
    ports:
      - ${MINIO_PORT}:${MINIO_PORT}
    networks:
      - snet-asclepios
    volumes:
      - ../data/minio:/data

  xnat-db:
    image: postgres:12.7-alpine
    container_name: xnat-db
    environment:
      POSTGRES_USER: ${XNAT_DATASOURCE_USERNAME}
      POSTGRES_PASSWORD: ${XNAT_DATASOURCE_PASSWORD}
      POSTGRES_DB: ${XNAT_DATASOURCE_DBNAME}
    networks:
      - snet-asclepios
    expose:
      - ${INTERNAL_XNAT_DB_PORT}
    volumes:
      - ../data/xnat-db:/var/lib/postgresql/data
      - ../conf/xnat.sql:/docker-entrypoint-initdb.d/xnat.sql

  xnat:
    image: registry.gitlab.com/indie-sleep-demo/dockerfiles/somnonetz/snet-xnat-asclepios
    container_name: xnat
    environment:
      # tomcat web app settings
      XNAT_ROOT: ${XNAT_ROOT}
      XNAT_HOME: ${XNAT_HOME}
      XNAT_DATASOURCE_DRIVER: ${XNAT_DATASOURCE_DRIVER}
      XNAT_DATASOURCE_URL: ${XNAT_DATASOURCE_URL}
      XNAT_DATASOURCE_USERNAME: ${XNAT_DATASOURCE_USERNAME}
      XNAT_DATASOURCE_PASSWORD: ${XNAT_DATASOURCE_PASSWORD}
      XNAT_HIBERNATE_DIALECT: ${XNAT_HIBERNATE_DIALECT}
      TOMCAT_XNAT_FOLDER: ${XNAT_TOMCAT_FOLDER}
      CATALINA_OPTS: ${XNAT_CATALINA_OPTS}
      PGPASSWORD: ${XNAT_DATASOURCE_PASSWORD}
      # browser client settings
      XNAT_API_URL: ${XNAT_API_URL}
177
      KEYCLOAK_HOST: ${KEYCLOAK_PROTOCOL}://${KEYCLOAK_HOST}:${KEYCLOAK_PORT} # fix me, use KEYCLOAK_BASE_URL in snet-asclepios-search
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
      TA_URL: ${SSE_TA_BASE_URL}
      SSE_URL: ${SSE_SERVER_BASE_URL}
      CP_ABE_URL: ${CPABE_SERVER_BASE_URL}
      SALT: ${SSE_CLIENT_SALT}
      IV: ${SSE_CLIENT_IV}
      ITER: ${SSE_CLIENT_ITER}
      KS: ${SSE_CLIENT_KS}
      TS: ${SSE_CLIENT_TS}
      HASH_LEN: ${SSE_CLIENT_HASH_LEN}
      CHUNK_SIZE: ${SSE_CLIENT_CHUNK_SIZE}
      NO_CHUNKS_PER_UPLOAD: ${SSE_CLIENT_NO_CHUNKS_PER_UPLOAD}
      SALT_TA: ${SSE_CLIENT_SALT_TA}
      IV_TA: ${SSE_CLIENT_IV_TA}
      ITER_TA: ${SSE_CLIENT_ITER_TA}
      KS_TA: ${SSE_CLIENT_KS_TA}
      TS_TA: ${SSE_CLIENT_TS_TA}
      SGX_ENABLE: ${SSE_CLIENT_SGX_ENABLE}
      DEBUG: ${SSE_CLIENT_DEBUG}
      AUTH: ${SSE_CLIENT_AUTH}
      SMALL_FILE: ${SSE_CLIENT_SMALL_FILE}
    networks:
      - snet-asclepios
    expose:
      - ${XNAT_PORT}
    ports:
      - ${XNAT_PORT}:${XNAT_PORT}
    volumes:
      - ../data/xnat/logs:/data/xnat/home/logs
      - ../data/xnat/archive:/data/xnat/archive
      - ../data/xnat/build:/data/xnat/build
      - ../conf/openid-provider.properties:/data/xnat/home/config/auth/openid-provider.properties
      # - ../snet-asclepios-editor/build:/usr/local/tomcat/webapps/sn-editor
      # - ../snet-asclepios-search/asclepios-search:/usr/local/tomcat/webapps/asclepios-search
      # - ../snet-asclepios-plugin/build/libs/snet-asclepios-plugin-0.1.1.jar:/data/xnat/home/plugins/snet-asclepios-plugin-0.1.1.jar

networks:
  snet-asclepios:
    external:
      name: snet-asclepios