Files
app-catalog-felhom.eu/templates/glance/docker-compose.yml
T
adminandClaude Opus 5.5 d308445e87
gates / gates (push) Successful in 3s
R-782: Glance behind the family gate (decision 221); family-gate rule 4 pins the ruled apps
Glance has no login of its own; new installs are published only behind the
household's family gate (family_gate: true, min_controller 0.287.0, no
exceptions). check-family-gate.py rule 4 refuses a ruled app (metube,
grimmory, glance) whose template drops the key; red-proven by three decoys.
An installed Glance is not re-gated (the controller records the gate at install).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-10-12 14:44:10 +02:00

94 lines
3.3 KiB
YAML

# Glance - Minimalista információs dashboard
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~20M (mem_limit: 128M) | Pi-compatible: Yes
#
# Glance has NO login of its own. On Felhom it is published ONLY behind the family gate (`family_gate: true` in
# .felhom.yml, controller >= 0.287.0, `09` §3 decision 221 / R-782): a stranger reaches nothing, a family member signs in
# with their own name and password. No exceptions.
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
services:
glance:
image: glanceapp/glance:v0.8.5
container_name: glance
restart: unless-stopped
environment:
- TZ=Europe/Budapest
# R-473: the image ships NO default config and exits at once without /app/config/glance.yml, so
# every fresh install crash-looped (measured 2026-09-13 on demo-hp: 13 restarts). First boot now
# seeds a small Hungarian start page (clock, calendar, weather, news, a link to the box's own
# dashboard); the customer edits it afterwards in the Fájlok app or through the config volume.
# The seed is written ONLY when the file is absent — an existing config is never touched.
entrypoint:
- /bin/sh
- -c
- |
if [ ! -f /app/config/glance.yml ]; then
echo "[felhom] first boot — seeding a default glance.yml"
cat > /app/config/glance.yml <<'GLANCE'
pages:
- name: Kezdőlap
columns:
- size: small
widgets:
- type: clock
hour-format: 24h
timezones:
- timezone: Europe/Budapest
label: Budapest
- type: calendar
- type: weather
location: Budapest, Hungary
units: metric
hour-format: 24h
- size: full
widgets:
- type: bookmarks
groups:
- title: Saját szolgáltatások
links:
- title: Felhom vezérlőpult
url: https://felhom.${DOMAIN}
- type: rss
title: Hírek
limit: 10
feeds:
- url: https://telex.hu/rss
title: Telex
- url: https://hvg.hu/rss
title: HVG
GLANCE
fi
exec /app/glance --config /app/config/glance.yml
volumes:
- glance_config:/app/config
networks:
- traefik-public
deploy:
resources:
limits:
memory: 128M
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:8080"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.glance.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.glance.entrypoints=websecure"
- "traefik.http.routers.glance.tls=true"
- "traefik.http.routers.glance.tls.certresolver=letsencrypt"
- "traefik.http.services.glance.loadbalancer.server.port=8080"
volumes:
glance_config:
networks:
traefik-public:
external: true