Files
app-catalog-felhom.eu/templates/homebox/docker-compose.yml
T
admin ccbc52787a homebox: healthcheck must GET, not HEAD (--spider hit a 405)
With the image and the pepper fixed, homebox still sat unhealthy. The probe's own
exit code was 8 (server error response) and homebox's log shows exactly why:

  method=HEAD path=/api/v1/status status=405
  method=GET  path=/api/v1/status status=200

'wget --spider' issues a HEAD request; homebox's status endpoint only implements
GET. Switched to 'wget -q -O /dev/null' (a real GET).

NOTE: 24 templates use --spider. The rest validated green, so their endpoints do
answer HEAD -- but this is a latent trap worth a convention note (see the
campaign doc).

Campaign 7 catalog sweep.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
2026-07-19 02:32:58 +02:00

54 lines
1.6 KiB
YAML

# Homebox - Home Inventory Management
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (SQLite, file-based)
# RAM: ~50MB (mem_limit: 256M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
#
# First-time setup:
# Register on first visit, first user becomes owner.
services:
homebox:
image: ghcr.io/sysadminsmedia/homebox:0.26.2
container_name: homebox
restart: unless-stopped
environment:
- HBOX_LOG_LEVEL=info
- HBOX_LOG_FORMAT=text
- HBOX_WEB_MAX_UPLOAD_SIZE=50
- HBOX_AUTH_API_KEY_PEPPER=${HBOX_AUTH_API_KEY_PEPPER}
- TZ=Europe/Budapest
volumes:
- homebox_data:/data
networks:
- traefik-public
deploy:
resources:
limits:
memory: 256M
healthcheck:
# NEM --spider: az HEAD kérést küld, amire a homebox /api/v1/status
# 405-tel válaszol (GET-re viszont 200). A próba emiatt hibázott,
# a konténer unhealthy lett, a Traefik pedig 404-et adott.
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:7745/api/v1/status"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
labels:
- "traefik.enable=true"
- "traefik.http.routers.homebox.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.homebox.entrypoints=websecure"
- "traefik.http.routers.homebox.tls=true"
- "traefik.http.routers.homebox.tls.certresolver=letsencrypt"
- "traefik.http.services.homebox.loadbalancer.server.port=7745"
volumes:
homebox_data:
networks:
traefik-public:
external: true