Compare commits

...

2 Commits

Author SHA1 Message Date
3wc 735d363355 refactor: split out Voila into separate compose file 2021-11-21 22:15:58 +02:00
3wc df79b317e8 Mass README update
[ci skip]
2021-11-21 21:23:23 +02:00
4 changed files with 57 additions and 54 deletions

View File

@ -8,6 +8,9 @@ COMPOSE_FILE="compose.yml"
#EXTRA_DOMAINS=', `www.jupyter-lab.example.com`'
LETS_ENCRYPT_ENV=production
# SSH access
# SSH authentication for git operations
#SECRET_SSH_KEY_VERSION=v1
#COMPOSE_FILE="$COMPOSE_FILE:compose.ssh.yml"
# "Voila" notebook publishing
#COMPOSE_FILE="$COMPOSE_FILE:compose.voila.yml"

View File

@ -4,14 +4,14 @@ Extensible environment for interactive and reproducible computing
<!-- metadata -->
- **Category**:
- **Status**:
- **Image**:
- **Healthcheck**:
- **Backups**:
- **Email**:
- **Tests**:
- **SSO**:
- **Category**: Apps
- **Status**: 1
- **Image**: `jupyter/datascience-notebook`
- **Healthcheck**: No
- **Backups**: No
- **Email**: N/A
- **Tests**: No
- **SSO**: No
<!-- endmetadata -->
@ -27,15 +27,17 @@ Extensible environment for interactive and reproducible computing
6. Open the configured domain in your browser to finish set-up
Currently, you have to manually run a command to generate an initial
configuration:
configuration (see #1):
`abra app YOURAPPDOMAIN run app jupyter notebook --generate-config`
And then run this command to get a token for initial login (or to set your own
password):
And then run this command to get a token for initial login:
`abra app YOURAPPDOMAIN run app jupyter notebook list`
You can enter this token at the bottom of the login page to set a password
instead (see #2).
[`abra`]: https://git.coopcloud.tech/coop-cloud/abra
[`coop-cloud/traefik`]: https://git.coopcloud.tech/coop-cloud/traefik
cloud/traefik

39
compose.voila.yml Normal file
View File

@ -0,0 +1,39 @@
---
version: "3.8"
services:
voila:
image: jupyter/datascience-notebook:r-4.1.1
networks:
- proxy
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
- jupyter_data:/home/jovyan
command: >
bash -c
"
pip install ipywidgets jupyterlab-git voila &&
voila --enable_nbextensions=True --autoreload=True --Voila.ip=0.0.0.0 --TagRemovePreprocessor.remove_cell_tags='{\"hide\"}' --no-browser --MappingKernelManager.cull_interval=60 --MappingKernelManager.cull_idle_timeout=120
"
configs:
- source: install-packages_conf
target: /usr/local/bin/start-notebook.d/install-packages
mode: 0555
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}_voila.loadbalancer.server.port=8866"
- "traefik.http.routers.${STACK_NAME}_voila.rule=Host(`dashboard.${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}_voila.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_voila.tls.certresolver=${LETS_ENCRYPT_ENV}"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m

View File

@ -33,49 +33,8 @@ services:
# timeout: 10s
# retries: 10
# start_period: 1m
#
voila:
image: jupyter/datascience-notebook:r-4.1.1
networks:
- proxy
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
- jupyter_data:/home/jovyan
command: >
bash -c
"
pip install ipywidgets jupyterlab-git voila &&
voila \
--enable_nbextensions=True \
--autoreload=True \
--Voila.ip=0.0.0.0 \
--no-browser \
--MappingKernelManager.cull_interval=60 \
--MappingKernelManager.cull_idle_timeout=120
"
configs:
- source: install-packages_conf
target: /usr/local/bin/start-notebook.d/install-packages
mode: 0555
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}_voila.loadbalancer.server.port=8866"
- "traefik.http.routers.${STACK_NAME}_voila.rule=Host(`dashboard.${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}_voila.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_voila.tls.certresolver=${LETS_ENCRYPT_ENV}"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
volumes:
jupyter_data: