Jupiter¶
Host Your JupyterLab Server¶
Read the Documentation.
docker-compose.yml¶
First you have to add the configuration to your docker-compose.yml
jupyter:
image: jupyter/scipy-notebook
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.services.srv_jupyter.loadbalancer.server.port=8888"
- "traefik.http.routers.r_jupyter.rule=Host(`jupyter.domain.tld`)"
- "traefik.http.routers.r_jupyter.entrypoints=websecure"
- "traefik.http.routers.r_jupyter.tls=true"
- "traefik.http.routers.r_jupyter.tls.certresolver=myresolver"
networks:
- proxy
volumes:
- /srv/jupyter/work:/home/jovyan/work/
environment:
- "JUPYTER_ENABLE_LAB=yes"
networks:
proxy:
external:
name: proxy
docker-compose logs jupyter. There is an example domain which ends with
?token=******. You have to copy this token and create a password on the website with it.
Reset Password¶
If you have forgotten your password, you can sign in with the token or you can change the password. To change the password you go into the container terminal with
docker-compose exec jupyter bash
jupyter server password
Fix the permissions¶
You have to adjust the permissions for your /work folder. You do this with this command
chown 1000:1000 /srv/jupyter/work/
Last update:
2022-01-09