-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
188 lines (167 loc) · 4.13 KB
/
docker-compose.yml
File metadata and controls
188 lines (167 loc) · 4.13 KB
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
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
177
178
179
180
181
182
183
184
185
186
187
188
version: '3.2'
services:
datastorage:
build:
context: .
dockerfile: ./storagecontainers/dockerfile-storage-data
args:
- inputpath=${INPUTPATH}
image: "datastorage:${CORPUSNAME}"
container_name: "${TAG}_datastorage"
#environment:
# - inpath=${INPUTPATH}
user: "1000:100"
volumes:
- "volume_data:/input"
configstorage:
build:
context: .
dockerfile: ./storagecontainers/dockerfile-storage-config
args:
- configpath=${CONFIGPATH}
image: "configstorage:${TAG}"
container_name: "${TAG}_configstorage"
user: "1000:100"
volumes:
- "volume_config:/config"
codestorage:
build:
context: .
dockerfile: ./storagecontainers/dockerfile-storage-code
args:
- codepath=${CODEPATH}
image: "codestorage:${TAG}"
container_name: "${TAG}_codestorage"
#environment:
# - inpath=${INPUTPATH}
user: "1000:100"
volumes:
- "volume_code:/code"
derivedstorage:
build:
context: .
dockerfile: ./storagecontainers/dockerfile-storage-derived
args:
- derivedpath=${DERIVEDPATH}
image: "derivedstorage:${TAG}"
container_name: "${TAG}_derivedstorage"
#environment:
# - inpath=${INPUTPATH}
user: "1000:100"
volumes:
- "volume_derived:/derived"
generate_doc2vec_model:
build:
context: .
dockerfile: ./d2vcontainer/dockerfile-d2v
depends_on:
- datastorage
- configstorage
- codestorage
- derivedstorage
image: "gend2v:${TAG}"
container_name: "${TAG}_generate_doc2vec_model"
ports:
- "6789:8888"
volumes:
- type: volume
source: volume_data
target: "/home/jovyan/input/"
read_only: true
volume:
nocopy: true
- type: volume
source: volume_config
target: /home/jovyan/config/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_code
target: /home/jovyan/code/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_derived
target: /home/jovyan/output/
read_only: false
volume:
nocopy: true
#- "volume_data:/home/jovyan/input/:ro"
#- "volume_code:/home/jovyan/"
#- "volume_derived:/home/jovyan/output"
inferal:
build:
context: .
dockerfile: ./inferalcontainer/dockerfile-inferal
depends_on:
- datastorage
- configstorage
- codestorage
- derivedstorage
- generate_doc2vec_model
image: "inferal:${TAG}"
container_name: "${TAG}_inferal"
ports:
- "5000:5000"
volumes:
- type: volume
source: volume_config
target: /home/jovyan/config/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_code
target: /home/jovyan/code/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_derived
target: /home/jovyan/output/
read_only: false
volume:
nocopy: true
representationapi:
build:
context: .
dockerfile: ./representationapicontainer/dockerfile-representationapi
depends_on:
- datastorage
- configstorage
- codestorage
- derivedstorage
- generate_doc2vec_model
image: "representationapi:${TAG}"
container_name: "${TAG}_representationapi"
ports:
- "5001:5000"
volumes:
- type: volume
source: volume_config
target: /home/jovyan/config/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_code
target: /home/jovyan/code/
read_only: false
volume:
nocopy: true
- type: volume
source: volume_derived
target: /home/jovyan/output/
read_only: false
volume:
nocopy: true
volumes:
#test:
volume_data:
volume_config:
volume_code:
volume_derived:
#volume_code_${CORPUSNAME}_${MODELNAME}:
#volume_derived_${CORPUSNAME}_${MODELNAME}: