Jupyter config.
This commit is contained in:
38
services/jupyter.hcl
Normal file
38
services/jupyter.hcl
Normal 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",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user