forked from fastai/fastai
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.fork.yml
41 lines (38 loc) · 1.11 KB
/
docker-compose.fork.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
version: "3"
services:
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/
environment:
- LIB_INSTALL_TYPE=.[dev] #optionally change this locally to .[dev] to install dev packages as well
notebook:
<<: *fastai
command: >
bash -c "pip install -e $$LIB_INSTALL_TYPE
&& nbdev_install_git_hooks
&& jupyter notebook --allow-root --no-browser --ip=0.0.0.0 --port=8080 --NotebookApp.token='' --NotebookApp.password=''"
ports:
- "9999: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 "cp -r ./docs_src/. ./docs/
&& pip install $$LIB_INSTALL_TYPE
&& nbdev_build_docs && cd docs
&& bundle i
&& bundle exec jekyll serve --host 0.0.0.0"