penpot/docs/technical-guide
Michael Panchenko 5a780f16c5 ♻️ Inject per-instance devenv config instead of overlay files
Also removes unneeded configurability of the tmux session name

Parallel ws1+ instances were configured by generating a gitignored docker/devenv/instances/wsN.env overlay on every start and layering it over defaults.env with a second --env-file. The file looked editable but was overwritten each run and could go stale; every value in it is a pure function of the instance number.

Replace it with instance-env-overrides, which echoes the per-instance KEY=VALUE pairs that instance-compose injects into its env -i docker compose call. Compose gives shell-env precedence over --env-file, so they override the defaults.env baseline; nothing is written to disk and the values are recomputed every call, so they cannot drift. Re-key the is-it-set-up guard to the workspace clone's existence, drop the unused instances/ dir and its .gitignore entry, and trim the per-instance-config docs and memory to current behaviour.

docker compose config renders byte-identical to the old overlay mechanism for ws0 and ws1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 16:12:11 +03:00
..
2025-09-29 11:54:47 +02:00