-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.19 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
version: '2'
services:
dask-worker:
image: drtools/dask:latest
command: dask-worker dask-scheduler:8786
volumes:
- ./data_root:/usr/share/data/
depends_on:
- dask-scheduler
dask-scheduler:
image: drtools/dask:latest
command: dask-scheduler
volumes:
- ./data_root:/usr/share/data/
ports:
- "8787:8787"
luigid:
image: code-challenge/orchestrator:latest
build:
context: ./orchestrator
command: luigid
ports:
- "8082:8082"
orchestrator:
image: code-challenge/orchestrator:latest
depends_on:
- luigid
- dask-scheduler
environment:
- PROJECT_ROOT=$PWD
- PIPELINE_VERSION=0.1
# TODO: Potentially adjust the network depending on your compose version!
- ORCHESTRATOR_NETWORK=code-challenge-2020_default
volumes:
- ./data_root:/usr/share/data/ # Mount data directory
- /var/run/docker.sock:/var/run/docker.sock # Mount docker socker
- ./orchestrator:/opt/orchestrator # Mount code for faster development
build:
context: ./orchestrator
# TODO: Replace with EvaluateModel task
command: luigi --module task DownloadData --scheduler-host luigid