aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-02-01 18:42:58 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-02-01 18:42:58 -0600
commite331bcb02485b52022c95619dbac7b7c3d122aef (patch)
tree94e521909f97f73e8f8e75359e90c86a69fd7ba9 /Dockerfile
parentd2ecaa5ff8ecee5f1b60f143319444225fadd72b (diff)
downloadslskd-e331bcb02485b52022c95619dbac7b7c3d122aef.tar.gz
add basic health check
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 5b1a71f2..8f1ce239 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,10 +48,12 @@ RUN mkdir /var/slskd
RUN mkdir /var/slskd/shared
RUN mkdir /var/slskd/downloads
+ENV SLSKD_HTTP_PORT=5000
ENV SLSKD_SHARED_DIR=/var/slskd/shared
ENV SLSKD_DOWNLOADS_DIR=/var/slskd/downloads
ENV SLSKD_DOCKER_VERSION=${VERSION}
-ENV SLSKD_DOCKER_SHA=${SHA}
+
+HEALTHCHECK --interval=60s --timeout=10s --start-period=60s --retries=3 CMD "curl --fail http://localhost:5000/health || exit"
ENTRYPOINT ["./slskd"] \ No newline at end of file