Files
ts-homepage/docker-compose.yml
DAM Updater 6800bd71d6 chore: replace stale draft with canonical ts-TEMPLATE form for ts-homepage
- Replace alternate template form (with {{YOUR_TAILSCALE_AUTHKEY}}, sys_module
  cap, hardcoded homepage.damconsulting.net serve.json) with the canonical
  ts-TEMPLATE pattern: Tailscale sidecar + Homepage, both via network_mode
- Use named volume for config dir; default settings/services/bookmarks/widgets
  files included as starting points for the user to customize
- Add SECURITY.md and proper .gitignore (incl. Homepage's auto-generated
  custom.css/custom.js/docker.yaml/kubernetes.yaml/proxmox.yaml stubs +
  logs/)
- serve.headscale.json now uses the actual MagicDNS base domain
  (homepage.damconsulting.net) so the user has a working starting point
  to edit, not a {{service}} placeholder that doesn't resolve
- Verified: dashboard renders at homepage.damconsulting.net
2026-08-03 15:48:56 -04:00

40 lines
1.2 KiB
YAML

# ==========================================
# REQUIRED: Tailscale sidecar (all ts-* services)
# ==========================================
services:
homepage-ts:
image: tailscale/tailscale:latest
hostname: homepage
container_name: homepage-ts
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_LOGIN_SERVER=${TS_LOGIN_SERVER}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json
- TS_EXTRA_ARGS=--login-server=${TS_LOGIN_SERVER}
volumes:
- ./tailscale/tailscale-data:/var/lib/tailscale
- ./tailscale/config:/config
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
restart: unless-stopped
# ==========================================
# REQUIRED: Homepage (single container, no DB)
# ==========================================
homepage:
image: ghcr.io/gethomepage/homepage:latest
environment:
# Required: comma-separated list of allowed hostnames / IPs.
# Use "*" to allow any (fine behind Tailscale, since Tailscale handles auth).
HOMEPAGE_ALLOWED_HOSTS: "*"
TZ: ${TZ:-UTC}
volumes:
- ./homepage/config:/app/config
depends_on:
- homepage-ts
network_mode: service:homepage-ts
restart: unless-stopped