sparkyfitness: finalize — image-inspected healthchecks + probe-container naming (REUSE row added)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6
This commit is contained in:
@@ -10,6 +10,7 @@ slug: "sparkyfitness"
|
||||
|
||||
resources:
|
||||
mem_request: "400M"
|
||||
# Sum of compose limits: db 512M + server 1024M + frontend 256M = 1792M
|
||||
mem_limit: "1792M"
|
||||
pi_compatible: false
|
||||
needs_hdd: false
|
||||
|
||||
@@ -76,7 +76,8 @@ services:
|
||||
limits:
|
||||
memory: 1024M
|
||||
healthcheck:
|
||||
# VERIFY-BEFORE-FINALIZE (see 1.3): node-exec probe, no wget/curl dependency.
|
||||
# Node-exec probe (image-inspected 2026-07-03: node v24.17.0 at /usr/local/bin/node; wget/curl
|
||||
# also present, but the node HTTP GET checks the real /api/health status, not just reachability).
|
||||
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3010/api/health',r=>process.exit(r.statusCode<400?0:1)).on('error',()=>process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
@@ -85,7 +86,10 @@ services:
|
||||
|
||||
sparkyfitness-frontend:
|
||||
image: codewithcj/sparkyfitness:v0.17.2
|
||||
container_name: sparkyfitness-frontend
|
||||
# container_name = the stack name EXACTLY: the controller-side health probe dials the container
|
||||
# named like the stack (fallback = FIRST prefix match, which here could be the DB) — see the
|
||||
# felhom-app-catalog skill / REUSE.md probe-naming row.
|
||||
container_name: sparkyfitness
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
sparkyfitness-server:
|
||||
@@ -113,7 +117,8 @@ services:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
# VERIFY-BEFORE-FINALIZE (see 1.3): confirm wget exists in this image; else curl; else omit.
|
||||
# BusyBox-wget family (image-inspected 2026-07-03: /usr/bin/wget present in this Alpine/nginx
|
||||
# image; curl too — wget kept as the catalog's most common family).
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
|
||||
Reference in New Issue
Block a user