Files
homelabstack/stacks/proxy/docker-compose.yml
T
ginnoirandClaude Sonnet 4.6 a44adc4814 docs: document gitea-first homelab deploys
Switch CLAUDE.md and AGENTS.md to Gitea-primary language. Remove
github-runner from the management plane now that Gitea Actions handles
Caddy reloads and famapp builds. Disable GitHub deploy workflow.
Update apply-compose.ps1 status text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 00:38:15 -05:00

49 lines
1.8 KiB
YAML

# proxy stack — Caddy reverse proxy / TLS terminator.
#
# Caddy is the single ingress for the whole estate. It joins only the shared
# `edge` network (owned by the management plane); every service it proxies also
# joins `edge`, so `reverse_proxy <service>:<port>` resolves by container name.
# This replaces Caddy's old membership in 11 separate per-stack networks.
#
# The Caddyfile itself is unchanged — upstreams are service names that resolve
# over edge. It is bind-mounted from /config/caddy/Caddyfile and hot-reloaded
# by the Gitea Actions runner on push (.gitea/workflows/deploy-caddy.yml).
#
# serfriz/caddy-cloudflare-ddns bundles caddy-dns/cloudflare (DNS-01 ACME),
# caddy-cloudflare-ip (real client IPs behind CF), caddy-dynamicdns.
services:
caddy:
container_name: caddy
image: serfriz/caddy-cloudflare-ddns:2.11.3
restart: unless-stopped
labels:
- "com.centurylabs.watchtower.enable=false"
networks:
edge:
aliases:
- gitea.ginnoir.com
ports:
- "80:80"
- "443:443"
env_file:
- stack.env
volumes:
- /config/caddy/Caddyfile:/etc/caddy/Caddyfile
- /config/caddy/site:/srv
- /config/caddy/data:/data
- /config/caddy/config:/config
- /storage1/Books:/srv/Books
# Pokémon ROM-hack library (box art + guides + spreadsheets), served
# read-only and LAN-only by the romhacks-files.ginnoir.com site so the
# Obsidian catalog notes can embed art and link guides.
- /storage1/labdata/romhacks/library:/srv/romhacks:ro
# ROM files are exposed only through romhacks-files.ginnoir.com/_roms/*
# and that site imports internal_only in the Caddyfile.
- /storage1/Emulation/roms:/srv/roms:ro
networks:
edge:
name: edge
external: true