diff --git a/services/jupyter.hcl b/services/jupyter.hcl new file mode 100644 index 0000000..a3c486f --- /dev/null +++ b/services/jupyter.hcl @@ -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", + ] + } + } + } +}