63f0ca5622
With the tag fixed so the image actually pulls, homebox 0.26.2 then panicked on every start (16 restarts): panic: auth.api_key_pepper must be set to at least 32 bytes; generate with `openssl rand -base64 48` and provide via HBOX_AUTH_API_KEY_PEPPER. Rotating it invalidates all issued API keys Added as a generated base64key:48 secret (matching upstream's own suggestion) and marked data_key: true -- rotating it invalidates every issued API key, so restore must recover the original rather than mint a new one. Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
51 lines
1.4 KiB
YAML
51 lines
1.4 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:
|
|
test: ["CMD", "wget", "--spider", "-q", "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
|