From ea39be14ee3ccc7746f03fffe40e71df686ddf51 Mon Sep 17 00:00:00 2001 From: stevensting Date: Wed, 7 Oct 2026 20:04:13 +0200 Subject: [PATCH] add healthchecks --- README.md | 8 ++++---- compose.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 566685b..243004a 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ * **Category**: Apps -* **Status**: 1, alpha +* **Status**: 3 * **Image**: [`plausible/analytics`](https://hub.docker.com/plausible/analytics), 4, upstream * **Healthcheck**: * **Backups**: Yes -* **Email**: No -* **Tests**: -* **SSO**: No +* **Email**: Yes +* **Tests**: No +* **SSO**: N/A ## Basic usage diff --git a/compose.yml b/compose.yml index f7b5d23..7508641 100644 --- a/compose.yml +++ b/compose.yml @@ -34,6 +34,12 @@ services: networks: - proxy - internal + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8000"] + interval: 15s + timeout: 10s + retries: 10 + start_period: 15s deploy: restart_policy: # `any`, not `on-failure`: a restore disrupts postgres under the app and Erlang then @@ -94,6 +100,12 @@ services: mode: 0555 networks: - internal + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8123/ping || exit 1"] + interval: 15s + timeout: 10s + retries: 10 + start_period: 15s deploy: labels: backupbot.backup: "true"