Domain Strategy: - fig.systems: Homelab services only (removed edfig.dev fallback from all services) - edfig.dev: Professional/public sites (personal site, blog) - figgy.foo: Experimental/private content (SSO protected) Removed edfig.dev Fallbacks: - Updated 22 compose files to remove || Host(...edfig.dev) pattern - All homelab services now use fig.systems only - Traefik email remains admin@edfig.dev Added Caddy Static Sites Service: - compose/services/static-sites/ with Caddy 2 - Serves three domains with different configurations: * edfig.dev (personal/professional) - Public, no SSO * blog.edfig.dev (blog) - Public, Markdown rendering, templates * figgy.foo (experimental) - SSO protected, directory browsing - Example sites with modern, responsive designs - Comprehensive README with usage examples - Auto-reload on config changes (no restarts needed) Features: - Markdown rendering (write .md, serves as HTML) - Go templates for dynamic content - Directory browsing (figgy.foo) - Automatic gzip compression - Static asset caching - Zero-downtime config reloads Updated Documentation: - README.md: Added domain strategy section, static sites in directory structure - README.md: Added static sites to service URLs table - README.md: Updated deployment instructions
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
services:
|
|
backrest:
|
|
image: garethgeorge/backrest:latest
|
|
container_name: backrest
|
|
hostname: backrest
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
- homelab
|
|
|
|
volumes:
|
|
- ./data:/data
|
|
- ./config:/config
|
|
- ./cache:/cache
|
|
- /home/user/homelab/compose/media/frontend/immich/upload:/backups/immich:ro
|
|
- /home/user/homelab/compose:/backups/homelab-config:ro
|
|
|
|
env_file:
|
|
- .env
|
|
|
|
labels:
|
|
# Traefik
|
|
traefik.enable: true
|
|
traefik.http.routers.backrest.rule: Host(`backup.fig.systems`)
|
|
traefik.http.routers.backrest.entrypoints: websecure
|
|
traefik.http.routers.backrest.tls.certresolver: letsencrypt
|
|
traefik.http.services.backrest.loadbalancer.server.port: 9898
|
|
|
|
# Require authentication
|
|
traefik.http.routers.backrest.middlewares: tinyauth
|
|
|
|
# Homarr Discovery
|
|
homarr.name: Backrest Backup
|
|
homarr.group: Services
|
|
homarr.icon: mdi:backup-restore
|
|
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9898/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
homelab:
|
|
external: true
|