add healthchecks

This commit is contained in:
2026-10-07 20:04:13 +02:00
parent 9422031de1
commit ea39be14ee
2 changed files with 16 additions and 4 deletions
+4 -4
View File
@@ -4,13 +4,13 @@
<!-- metadata -->
* **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
<!-- endmetadata -->
## Basic usage
+12
View File
@@ -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"