-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.32 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
version: '3'
services:
server:
build:
context: ./ui
image: evidence/server
entrypoint: ["./start.sh"]
ports:
- "8080:8080"
volumes:
- ./experiments/${EXPERIMENT}/model:/data:ro
environment:
- CHECK=${EXPERIMENT:?You need to define a value for EXPERIMENT.}
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:6.6.1"
environment:
discovery.type: "single-node"
indexer:
build:
context: ./ui/indexer
image: evidence/indexer
depends_on:
- "elasticsearch"
command: ["sh","-c","/utils/wait-for-it.sh elasticsearch:9200
--timeout=0
-- /utils/index.py
data/model/fragment_ids.txt
data/model/fragments.txt
elasticsearch
&& echo Now go to the following URL in your webbrowser
http://localhost:8080/ for the user interface."]
volumes:
- ./experiments/${EXPERIMENT}:/data:ro
environment:
- CHECK=${EXPERIMENT:?You need to define a value for EXPERIMENT.}
usercreator:
build:
context: ./ui/usercreator
image: evidence/usercreator
depends_on:
- server
command: [
"/utils/wait-for-it.sh", "server:8080", "--timeout=0",
"--",
"/usr/bin/curl", "-X", "POST", "http://server:8080/users", "-d", "${FRONTEND_USER:-demo}"
]