Files
computer-playbook/compose/cache.shared.override.yml
kevinveenbirkenbachandClaude Opus 5 8aba198aec feat(worktree): isolated per-branch checkouts sharing one cache stack
Parallel checkouts collided on the compose subnet, host ports and container
names, so a quality run in a worktree died at compose-up. Slot each checkout
via custom.env and layer two overrides on top: the shared cache network in
place of a second cache stack, and the shared .git directory without which
git aborts inside the container.

Both overlays gate on the resource they need, not on the slot number, so a
stray INFINITO_INSTANCE cannot make compose demand a value nobody set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 16:15:59 +02:00

19 lines
590 B
YAML

---
# Layered on cache.override.yml for secondary instances, which reach the
# primary instance's cache stack instead of running one of their own.
# See docs/contributing/environment/cache.md.
services:
infinito:
# Exception: required:false still makes compose CREATE the cache services,
# which would claim the primary instance's IPs outside this subnet.
depends_on: !reset null
networks:
cache:
networks:
cache:
external: true
name: ${INFINITO_CACHE_NETWORK:?Set by 'make worktree-up' from the running
cache stack; empty on the primary instance}