From 5f735dce6a06ef27871081047eaa07c9dcfa4144 Mon Sep 17 00:00:00 2001 From: chiko Date: Tue, 21 Oct 2025 02:35:59 +0200 Subject: [PATCH] container healthchecks.. --- docker-compose.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 132d01a..b4111ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,9 @@ services: volumes: - ./data/db:/opt/app/data/db depends_on: + apprise: + condition: service_healthy + links: - apprise apprise: image: caronc/apprise:latest @@ -19,7 +22,12 @@ services: - ./data/apprise/attach:/attach ports: - 8000:8000 -networks: - default: - external: true - name: npm \ No newline at end of file + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/status"] + interval: 30s + timeout: 10s + retries: 5 +# networks: +# default: +# external: true +# name: npm \ No newline at end of file