Skip to content

Instantly share code, notes, and snippets.

@Bomberus
Created November 1, 2020 22:46
Show Gist options
  • Save Bomberus/c2e6c76beae375b45131db78f158cc98 to your computer and use it in GitHub Desktop.
Save Bomberus/c2e6c76beae375b45131db78f158cc98 to your computer and use it in GitHub Desktop.
Jupyterlab + Docker compose
version: "3"
services:
jupyter:
container_name: jupyter
restart: unless-stopped
build:
context: .
dockerfile: ENV.Dockerfile
environment:
- "JUPYTER_ENABLE_LAB=yes"
- "RESTARTABLE=yes"
- "JUPYTER_TOKEN=MY_PASSWORD"
volumes:
- jupyter_data:/home/jovyan/
labels:
- "traefik.enable=true"
- "traefik.http.routers.jupyterlab.rule=Host(`notebook.HOST.de`)"
- "traefik.http.routers.jupyterlab.tls=true"
- "traefik.http.routers.jupyterlab.tls.certresolver=cloudflare"
- "traefik.http.routers.jupyterlab.tls.domains[0].main=notebook.HOST.de"
- "traefik.http.routers.jupyterlab.entrypoints=https"
- "traefik.http.routers.jupyterlab.middlewares=secured@file"
- "traefik.http.services.jupyterlab.loadbalancer.server.port=8888"
volumes:
jupyter_data:
networks:
default:
external:
name: traefik_default
FROM jupyter/scipy-notebook:latest
RUN pip install xeus-python && \
pip install -U spacy && \
pip install -U spacy-lookups-data && \
python -m spacy download en_core_web_sm && \
python -m spacy download de_core_news_sm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment