From 9bb144577b09bd56f9131f1db5fd658b62e8e3c1 Mon Sep 17 00:00:00 2001 From: surtic86 Date: Fri, 18 Sep 2026 22:17:35 +0200 Subject: [PATCH] Stop reporting the scheduler container as unhealthy The scheduler inherited the image's healthcheck, which asks the web server that only the app container runs. Co-Authored-By: Claude Opus 5 (1M context) --- CHANGELOG.md | 1 + docker-compose.example.yml | 3 +++ docker-compose.yml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c455c4f..d5062a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Docker installs updated from 2.0 answered every upload with "409 Conflict". The example `docker-compose.yml` mounted the SQLite volume over all of `/app/database`, which hid the image's new migration, so it never ran. The container now adds the migrations the volume is missing before migrating, so existing compose files keep working. - A share with several files and a download limit was deleted as soon as one file was downloaded: every single file counted as a whole download. Now one recipient's visit counts once, and they have 1 hour to download all the files and the ZIP. Two recipients who start at the same moment can no longer both get the last download. +- The scheduler container no longer shows as "unhealthy": it inherited the image's healthcheck, which asks the web server that only the app container runs. To fix an existing install, add `healthcheck: { disable: true }` to the scheduler service in your `docker-compose.yml`. ### Changed diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 88ad371..985c6bd 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -83,6 +83,9 @@ services: image: gitea.nonameweb.ch/nonameweb/sealshare:latest restart: unless-stopped entrypoint: ["php", "artisan", "schedule:work"] + # The image's healthcheck asks the web server, which only the app service runs + healthcheck: + disable: true volumes: - sealshare_storage:/app/storage/app - sealshare_database:/app/database/sqlite diff --git a/docker-compose.yml b/docker-compose.yml index f8b481b..4a85148 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,6 +54,9 @@ services: dockerfile: Dockerfile restart: unless-stopped entrypoint: ["php", "artisan", "schedule:work"] + # The image's healthcheck asks the web server, which only the app service runs + healthcheck: + disable: true volumes: - sealshare_storage:/app/storage/app - sealshare_database:/app/database/sqlite