From 6d0a020028e38b21c9deca4188d609391e1f47d1 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 3 Feb 2021 18:34:15 -0600 Subject: fix health check --- Dockerfile | 2 +- src/slskd/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c67991ac..bbf31000 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,6 @@ ENV SLSKD_DOWNLOADS_DIR=/var/slskd/downloads ENV SLSKD_DOCKER_VERSION=${VERSION} -HEALTHCHECK --interval=60s --timeout=5s --start-period=60s --retries=3 CMD "wget -nv -t1 --spider 'http://localhost:5000/health' || exit 1" +HEALTHCHECK --interval=60s --timeout=3s --start-period=1s --retries=1 CMD wget -q -O - http://localhost:80/health ENTRYPOINT ["./slskd"] \ No newline at end of file diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index da4984fe..b6a47572 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -186,9 +186,9 @@ .UseSerilog() .UseStartup() //.UseUrls( - // $"http://0.0.0.0:{options.Web.Port}", - // $"https://0.0.0.0:{options.Web.Https.Port}") - .UseUrls($"http://0.0.0.0:{Options.Web.Port}") + // $"http://+:{options.Web.Port}", + // $"https://+:{options.Web.Https.Port}") + .UseUrls($"http://+:{Options.Web.Port}") .Build() .Run(); } -- cgit v1.2.3 From e98a5010675aba3334f34084c69f2b2571282a7a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 3 Feb 2021 18:47:21 -0600 Subject: tweak check params --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bbf31000..5614c9bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,6 @@ ENV SLSKD_DOWNLOADS_DIR=/var/slskd/downloads ENV SLSKD_DOCKER_VERSION=${VERSION} -HEALTHCHECK --interval=60s --timeout=3s --start-period=1s --retries=1 CMD wget -q -O - http://localhost:80/health +HEALTHCHECK --interval=60s --timeout=3s --start-period=5s --retries=3 CMD wget -q -O - http://localhost:80/health ENTRYPOINT ["./slskd"] \ No newline at end of file -- cgit v1.2.3