forked from Fibertree-Project/fibertree-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml.example
30 lines (30 loc) · 1 KB
/
docker-compose.yaml.example
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
version: '2'
#
# 1) Put this file (without .example) in an otherwise empty directory
# 2) Cd to the directory containing this file
# 3) Change NB_UID below to the uid of the user you want to own your notebooks
# 4) [optional] Change TZ environment variable to your timezone
# 5) [optional] Adjust or add volume mounts to your preference
# 6) [optional] Change the port exposed by the container
# 7) [optional] Remove "--NotebookApp.token=''" switch to enable Jupyter tokens
# 8) Run the following command:
#
# % docker-compose up -d
#
# WARNING: By default this docker compose file disables Jupyter tokens,
# so do not use on a system exposed directly to the internet.
#
services:
notebook:
image: jsemer/fibertree-notebook:latest
user: root
environment:
- NB_UID=1000
- TZ=America/New_York
volumes:
- ./work:/home/jovyan/fibertree-notebooks/notebooks/work
ports:
- "8888:8888"
command: "start.sh jupyter notebook --NotebookApp.token=''"
restart:
unless-stopped