From 2e15a61525479587b8a5e73fa7f9a92082ae58e9 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 31 May 2024 08:19:43 +0100 Subject: [PATCH] Jupyter config. --- services/jupyter.hcl | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 services/jupyter.hcl 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", + ] + } + } + } +}