forked from mitdbg/aurum-datadiscovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (89 loc) · 2.48 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
# For a simple Aurum setup, install Docker Compose
# <https://docs.docker.com/compose/install/> and run these commands:
#
# 1. docker-compose up -d elasticsearch
# Brings up an elasticsearch instance using the data located at data/elasticsearch. This data persists even if you destroy and recreate the elasticsearch Docker container.
# 2*. docker-compose build profiler
# 2. docker-compose up profiler
# Runs the ddprofiler with the CSVs located in data/csvs. Writes to the above elasticsearch container.
# 3*. docker-compose build nbc
# 3. docker-compose run --rm -T nbc
# Runs networkbuildercoordinator.py with the above elasticsearch and saves its files to data/pickles.
# 4. docker-compose up notebook
# Runs a Jupyter notebook with Aurum libraries and the above pickles from data/pickles.
# 5. docker-compose up frontend
# Runs the web frontend and API on http://localhost:3000 and http://localhost:5000 respectively. Uses pickles from data/pickles.
version: '3'
networks:
aurum_net:
driver: bridge
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.0.1
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
aurum_net:
aliases:
- elasticsearch
profiler:
depends_on:
- elasticsearch
image: aurum/ddprofiler
build:
context: .
dockerfile: docker/Dockerfile-ddprofiler
volumes:
- ./data:/data
command: "" # "<profiler args here>"
networks:
aurum_net:
aliases:
- profiler
nbc:
depends_on:
- elasticsearch
image: aurum/networkbuildercoordinator
build:
context: .
dockerfile: docker/Dockerfile-networkbuildercoordinator
volumes:
- ./data/models:/output
networks:
aurum_net:
aliases:
- nbc
notebook:
depends_on:
- elasticsearch
image: aurum/notebook
build:
context: .
dockerfile: docker/Dockerfile-jupyter-notebook
volumes:
- ./data/models:/data/models
ports:
- 8888:8888
networks:
aurum_net:
aliases:
- notebook
# frontend:
# depends_on:
# - elasticsearch
# image: aurum/frontend
# build:
# context: .
# dockerfile: docker/Dockerfile-ui
# volumes:
# - ./data/models:/aurum/data/models
# ports:
# - 3000:3000
# - 5000:5000
# networks:
# aurum_net:
# aliases:
# - frontend