From ff3fa1fe0ae87151ce4ae142a5f52f0a52da789f Mon Sep 17 00:00:00 2001 From: "yokowasis@host2" Date: Tue, 22 Oct 2024 12:07:46 +0000 Subject: [PATCH] healthcheck --- templates/compose/jupyterlab.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/compose/jupyterlab.yaml b/templates/compose/jupyterlab.yaml index 360067919..1795dda35 100644 --- a/templates/compose/jupyterlab.yaml +++ b/templates/compose/jupyterlab.yaml @@ -19,3 +19,15 @@ services: - PIP_PACKAGES=${PIP_PACKAGES:-sastrawi} volumes: - jupyterlab_data:/home/mambauser/data + healthcheck: + test: + [ + "CMD", + "curl", + "-f", + "http://127.0.0.1:8008/login/", + ] + timeout: 5s + interval: 5s + retries: 3 + \ No newline at end of file