Replace bun with node in docker-compose.yml healthcheck #269

Closed
opened 2026-01-25 13:13:31 +00:00 by jack · 0 comments
Owner

Problem

docker-compose.yml:44 verwendet Bun für den Healthcheck:

test: ["CMD", "bun", "-e", "fetch('http://localhost:37777/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]

Lösung

Mit node -e oder curl ersetzen:

# Option 1: Node
test: ["CMD", "node", "-e", "fetch('http://localhost:37777/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]

# Option 2: curl (einfacher)
test: ["CMD", "curl", "-f", "http://localhost:37777/api/health"]

Hinweis: fetch ist ab Node 18 nativ verfügbar.

## Problem `docker-compose.yml:44` verwendet Bun für den Healthcheck: ```yaml test: ["CMD", "bun", "-e", "fetch('http://localhost:37777/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"] ``` ## Lösung Mit `node -e` oder `curl` ersetzen: ```yaml # Option 1: Node test: ["CMD", "node", "-e", "fetch('http://localhost:37777/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"] # Option 2: curl (einfacher) test: ["CMD", "curl", "-f", "http://localhost:37777/api/health"] ``` **Hinweis:** `fetch` ist ab Node 18 nativ verfügbar.
jack 2026-01-25 13:13:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#269
No description provided.