[Request] Implement Healthchecks #1182

Open
opened 2026-03-22 17:13:42 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Norrodar on GitHub (May 21, 2025).

I like to monitor all my containers for their health status — mostly just to satisfy my inner monk.
Image

Postgres is straightforward:

healthcheck:
  test:
    - CMD-SHELL
    - pg_isready -U ${KOMODO_DB_USERNAME} -d ${KOMODO_DATABASE_DB_NAME}
  interval: 10s
  timeout: 5s
  retries: 5
  start_period: 30s

FerretDB has its own internal healthcheck, which communicates with Docker (e.g., for Dockge).

⚠️ For Core, I built the absolute basics:

healthcheck:
  test:
    - CMD
    - curl
    - -f
    - http://localhost:9120
  interval: 30s
  timeout: 10s
  retries: 5

🛑 Periphery... yeah, I can't get it working — the passkey header and everything just don't seem to play nice.

Originally created by @Norrodar on GitHub (May 21, 2025). I like to monitor all my containers for their health status — mostly just to satisfy my inner monk. ![Image](https://media.tenor.com/gJ0aexM3UN4AAAAM/monk-adrian-monk.gif) ✅ **Postgres** is straightforward: ``` healthcheck: test: - CMD-SHELL - pg_isready -U ${KOMODO_DB_USERNAME} -d ${KOMODO_DATABASE_DB_NAME} interval: 10s timeout: 5s retries: 5 start_period: 30s ``` ✅ **FerretDB** has its own internal healthcheck, which communicates with Docker (e.g., for Dockge). ⚠️ For **Core**, I built the absolute basics: ``` healthcheck: test: - CMD - curl - -f - http://localhost:9120 interval: 30s timeout: 10s retries: 5 ``` 🛑 **Periphery**... yeah, I can't get it working — the passkey header and everything just don't seem to play nice.
GiteaMirror added the enhancement label 2026-03-22 17:13:42 -05:00
Author
Owner

@djakupovic commented on GitHub (Jul 1, 2025):

healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:8121 || exit 1"]
interval: 10s
retries: 3
start_period: 10s

This works for me as a workaround

@djakupovic commented on GitHub (Jul 1, 2025): healthcheck: test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:8121 || exit 1"] interval: 10s retries: 3 start_period: 10s This works for me as a workaround
Author
Owner

@chiragkrishna commented on GitHub (Oct 4, 2025):

came searching for this, checking health is way complicated

curl -X POST https://komodo.example.com/read \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: K-jHddH" \
  -H "X-Api-Secret: S-Kedkb" \
  -d '{
    "type": "GetServerState",
    "params": {
      "server": "server"
    }
  }'

Would give output

{"status":"Ok"}
@chiragkrishna commented on GitHub (Oct 4, 2025): came searching for this, checking health is way complicated ```bash curl -X POST https://komodo.example.com/read \ -H "Content-Type: application/json" \ -H "X-Api-Key: K-jHddH" \ -H "X-Api-Secret: S-Kedkb" \ -d '{ "type": "GetServerState", "params": { "server": "server" } }' ``` Would give output ```json {"status":"Ok"} ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1182