Add collaborative jupyter lab

This commit is contained in:
Paul Brinkmeier 2022-05-03 19:12:33 +02:00
parent 07b685a89b
commit 2d947ec243
4 changed files with 37 additions and 1 deletions

View File

@ -80,3 +80,17 @@
url: https://github.com/pbrinkmeier/tichy-clicker url: https://github.com/pbrinkmeier/tichy-clicker
commit: 7dfb14183c765e3661fda84a7e89c2f73ca86f26 commit: 7dfb14183c765e3661fda84a7e89c2f73ca86f26
owner: paul owner: paul
- name: Add jupyter user with UID 42000
become: yes
ansible.builtin.user:
name: jupyter
uid: 42000
state: present
- name: Add Notebooks folder
become: yes
ansible.builtin.file:
path: /home/jupyter/Notebooks
owner: jupyter
group: jupyter
state: directory
mode: 0755

View File

@ -17,3 +17,10 @@ codi.pbrinkmeier.de {
git.pbrinkmeier.de { git.pbrinkmeier.de {
reverse_proxy gitlab:80 reverse_proxy gitlab:80
} }
jupyter.pbrinkmeier.de {
reverse_proxy jupyter:8888
basicauth {
wug JDJhJDE0JEJrQXUzVWxFZ2JGVmx6YlZWTkpYdy5IMjRXdnZZdGw5SjZDcUg2ZWMxOEVjcEV6dWhIRmhD
}
}

View File

@ -1,3 +1,7 @@
# web # web
Contains stuff exposed via HTTP(S) to the Internet, e.g. personal website, Wiki, etc. Contains stuff exposed via HTTP(S) to the Internet, e.g. personal website, Wiki, etc.
## Jupyter
The Docker image for Jupyter is built using Nix. That process is not part of the Ansible setup (yet).

View File

@ -78,6 +78,17 @@ services:
nginx['listen_port'] = 80 nginx['listen_port'] = 80
nginx['listen_https'] = false nginx['listen_https'] = false
jupyter:
image: ihaskell-docker:1.0
# ports:
# - "8888:8888"
user: "42000" # Jupyter user UID (jupyter does not exist in container (TODO...))
environment:
HOME: /Notebooks
volumes:
- /home/jupyter/Notebooks:/Notebooks
restart: always
volumes: volumes:
caddy_data: caddy_data:
caddy_config: caddy_config: