From 98e79a0f9bda63106268ca5921ccfb2ec3a56ffc Mon Sep 17 00:00:00 2001 From: brooke Date: Sat, 22 Feb 2025 13:45:10 -0500 Subject: [PATCH] healthcheck --- README.md | 2 +- compose.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c6f2d1..71a670e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ * **Category**: Apps * **Status**: wip * **Image**: [`privatebin`](https://hub.docker.com/r/privatebin), 4, upstream -* **Healthcheck**: No +* **Healthcheck**: Yes * **Backups**: No * **Email**: N/A * **Tests**: No diff --git a/compose.yml b/compose.yml index bedd1df..6d0b1eb 100644 --- a/compose.yml +++ b/compose.yml @@ -22,6 +22,12 @@ services: - "coop-cloud.${STACK_NAME}.version=0.1.0+1.7.6" volumes: - privatebin-data:/srv/data:rw + healthcheck: + test: [ "CMD", "wget", "-qO/dev/null", "http://localhost:8080" ] + interval: 30s + retries: 3 + start_period: 30s + timeout: 10s volumes: privatebin-data: