-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
92 lines (84 loc) · 2.17 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
version: "3"
services:
redis:
image: 'redis:6'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- '6379:6379'
dask-scheduler:
build:
context: docker/base
dockerfile: Dockerfile
image: daskdev/dask
hostname: dask-scheduler
ports:
- "8786:8786"
- "8787:8787"
command: ["dask-scheduler"]
volumes:
- ./data:/data
dask-worker:
build:
context: docker/base
dockerfile: Dockerfile
image: daskdev/dask
hostname: dask-worker
command: ["dask-worker", "tcp://dask-scheduler:8786", "--memory-limit=2GB"]
volumes:
- ./data:/data
base-notebook:
build:
context: github.com/jupyter/docker-stacks.git#master:base-notebook
dockerfile: Dockerfile
args:
PYTHON_VERSION: "3.8"
image: jupyter/base-notebook:lab
volumes:
- ./data:/data
dask-notebook:
build:
context: docker/notebook
dockerfile: Dockerfile
image: daskdev/dask-notebook
depends_on:
- base-notebook
hostname: notebook
ports:
- "8888:8888"
environment:
- DASK_SCHEDULER_ADDRESS="tcp://scheduler:8786"
volumes:
- ./data:/data
fastai: &fastai
restart: unless-stopped
working_dir: /data
image: fastai/codespaces
logging:
driver: json-file
options:
max-size: 50m
stdin_open: true
tty: true
volumes:
- .:/data/
notebook:
<<: *fastai
command: bash -c "pip install -e . && jupyter notebook --allow-root --no-browser --ip=0.0.0.0 --port=8080 --NotebookApp.token='' --NotebookApp.password=''"
ports:
- "8080:8080"
watcher:
<<: *fastai
command: watchmedo shell-command --command nbdev_build_docs --pattern *.ipynb --recursive --drop
network_mode: host # for GitHub Codespaces https://github.com/features/codespaces/
jekyll:
<<: *fastai
ports:
- "4000:4000"
command: >
bash -c "pip install .
&& nbdev_build_docs && cd docs
&& bundle i
&& chmod -R u+rwx . && bundle exec jekyll serve --host 0.0.0.0"