add jupyter notebook service

This commit is contained in:
debian
2024-03-03 00:31:56 +01:00
parent a1a1b2d950
commit ad9b16653a
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
services:
jupyter:
extends:
file: ${TEMPLATES_PATH}
service: default
image: quay.io/jupyter/base-notebook:latest
container_name: jupyter
volumes:
- ${SERVICE_PATH}/jupyter-notebook/data:/home/jovyan/work
ports:
- 4013:8888 # Web UI
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Traefik
- "traefik.enable=true"
- "traefik.http.routers.jupyter.rule=Host(`jupyter.${LOCAL_DOMAIN}`)"
- "traefik.http.routers.jupyter.entrypoints=https"
- "traefik.http.routers.jupyter.tls=true"