Files
app-catalog-felhom.eu/templates/homepage/docker-compose.yml
T

54 lines
2.2 KiB
YAML

# Homepage - Személyre szabható kezdőlap szolgáltatás widgetekkel
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~50M (mem_limit: 256M) | Pi-compatible: Yes
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
services:
homepage:
image: ghcr.io/gethomepage/homepage:v2.7.0
container_name: homepage
restart: unless-stopped
environment:
- TZ=Europe/Budapest
# R-782 (measured 2026-10-06 on the bench, v1.13.2): since v1.0 Homepage refuses every /api/*
# request whose Host is not listed here — "Host validation failed" (400) — so the page loaded but
# its services and widgets stayed empty. The page itself and the healthcheck's 127.0.0.1 are not
# checked. With the box's own name listed, /api/services answers 200.
- HOMEPAGE_ALLOWED_HOSTS=${SUBDOMAIN}.${DOMAIN}
# R-981 (2026-10-18): NO Docker socket. It gave this login-less page full control of Docker (= of the guest), and
# no Felhom feature used it: the rendered docker.yaml is empty, nothing on the box carries homepage.* labels
# (measured on demo-hp, felhom.eu audits/night-2026-10-18/P1/r981-homepage-before.txt). Without it the page, its
# services, bookmarks and the resources/search widgets work as before; only a hand-written docker.yaml would lose
# its container status. The box's allow-list has no exception any more (controller internal/privpolicy).
volumes:
- homepage_config:/app/config
networks:
- traefik-public
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.homepage.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.homepage.entrypoints=websecure"
- "traefik.http.routers.homepage.tls=true"
- "traefik.http.routers.homepage.tls.certresolver=letsencrypt"
- "traefik.http.services.homepage.loadbalancer.server.port=3000"
volumes:
homepage_config:
networks:
traefik-public:
external: true