From c710869fca41ddf990f4f15148561e0cc2fa2ccc Mon Sep 17 00:00:00 2001 From: librelol Date: Fri, 15 Nov 2024 12:17:03 -0500 Subject: [PATCH] Added a healthcheck to private bin --- templates/compose/privatebin.yaml | 12 ++++++++++++ templates/compose/redlib.yaml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/compose/privatebin.yaml b/templates/compose/privatebin.yaml index 96ffa4311..567272cb4 100644 --- a/templates/compose/privatebin.yaml +++ b/templates/compose/privatebin.yaml @@ -13,3 +13,15 @@ services: - SERVICE_FQDN_PRIVATEBIN_8080 volumes: - 'privatebin-data:/srv/data' + healthcheck: + test: + - CMD + - wget + - '--spider' + - '-q' + - 'http://localhost:8080/' + interval: 30s + timeout: 5s + retries: 3 + start_period: 10s + disable: false diff --git a/templates/compose/redlib.yaml b/templates/compose/redlib.yaml index 08acc5ef7..6e871433b 100644 --- a/templates/compose/redlib.yaml +++ b/templates/compose/redlib.yaml @@ -1,7 +1,7 @@ # documentation: https://github.com/redlib-org/redlib # An alternative private front-end to Reddit, with its origins in Libreddit. # tags: frontend, feed -# logo: svgs/redlib.svg +# logo: svgs/freshrss.png # port: 8080 services: @@ -14,9 +14,9 @@ services: - REDLIB_SFW_ONLY=off - REDLIB_BANNER="" - REDLIB_ROBOTS_DISABLE_INDEXING=off + - REDLIB_DEFAULT_FRONT_PAGE=worldnews - REDLIB_PUSHSHIFT_FRONTEND=undelete.pullpush.io - REDLIB_DEFAULT_THEME=system - - REDLIB_DEFAULT_FRONT_PAGE=default - REDLIB_DEFAULT_LAYOUT=card - REDLIB_DEFAULT_WIDE=off - REDLIB_DEFAULT_POST_SORT=hot