halkyon/deploy/compose.jellyfin-home.yaml
Tizian 「ティツィアーン」 3ac1880ac8
build(deploy)!: the instance's compose file is compose.learn.yaml, beside compose.train.yaml and compose.todo.yaml
No file has Compose's default name any more, so .env's COMPOSE_FILE is always set,
naming compose.learn.yaml first (.env.example sets it). compose.yaml stays as a link to
compose.learn.yaml for the one deploy that switches learn.halkyon.eu's .env over: the
deploy's merge runs with the COMPOSE_FILE from before. A later commit removes it.

BREAKING CHANGE: an instance's deploy/.env must set COMPOSE_FILE, starting with
compose.learn.yaml, before the link goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-11-02 23:12:15 +01:00

27 lines
1.3 KiB
YAML

# Jellyfin at home, published by the instance (ADR 0032): the Jellyfin sidecar's site,
# with Caddy proxying through a WireGuard tunnel to a Jellyfin on the operator's own
# machine (home-jellyfin/), rather than to one beside the instance. Nothing of the home
# network shows: people reach the instance's server alone. Switched on in .env, in place
# of compose.jellyfin.yaml, never beside it:
#
# COMPOSE_FILE=compose.learn.yaml:compose.jellyfin-home.yaml
# JELLYFIN_DOMAIN=jellyfin.halkyon.eu
#
# The tunnel is the host's (wg-quick@wg-jellyfin, with the rules letting Caddy alone
# through it), set up once as root: sidecars/README.md, *Jellyfin at home*.
services:
caddy:
environment:
JELLYFIN_DOMAIN: ${JELLYFIN_DOMAIN:?set JELLYFIN_DOMAIN in deploy/.env}
# The home end's address in the tunnel (D3).
JELLYFIN_UPSTREAM: 10.61.96.2:8096
volumes:
- ./sidecars/jellyfin.caddy:/etc/caddy/sidecars/jellyfin.caddy:ro
server:
# No JELLYFIN_URL (D9): the instance looks at jellyfin. on its own domain and
# suggests it only while it answers, as the home end is away whenever its machine
# is. It looks through Caddy on edge, not by the public address back in.
extra_hosts:
- ${JELLYFIN_DOMAIN:?set JELLYFIN_DOMAIN in deploy/.env}:172.30.80.2