Jupyter config.

This commit is contained in:
2024-05-31 08:19:43 +01:00
parent 732439be74
commit 2e15a61525

38
services/jupyter.hcl Normal file
View File

@@ -0,0 +1,38 @@
job "jupyter" {
datacenters = ["alo"]
group "ui" {
network {
port "http" {
to = 8888
}
}
task "notebook" {
driver = "docker"
config {
image = "quay.io/jupyter/scipy-notebook:latest"
ports = ["http"]
volumes = [
"/data/compute/appdata/jupyter:/home/jovyan/work",
]
command = "start-notebook.py"
args = [ "--IdentityProvider.token=''" ]
}
service {
name = "jupyter"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.jupyter.entryPoints=websecure",
"traefik.http.routers.jupyter.middlewares=authentik@file",
]
}
}
}
}