Files
alo-cluster/services/jupyter.hcl
2024-05-31 08:19:43 +01:00

39 lines
732 B
HCL

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",
]
}
}
}
}