41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
---
|
|
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
|
|
working_dir: /home/jovyan/cft-evidence-models
|
|
command: >
|
|
bash -c
|
|
"
|
|
pip install ipywidgets jupyterlab-git voila ipysheet &&
|
|
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
|
|
|