fix(dev): export HOST_UID/HOST_GID (not UID/GID) for compose #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dev-host-uid-mapping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
compose.dev.yml interpolates ${HOST_UID}/${HOST_GID} for the container
user:mapping and the dev-image build args, but the justfile exported UID/GID, so HOST_UID was never set and fell back to 1000. On a host where the developer's uid is not 1000 (e.g. 10002), the container ran as 1000 and could not read the bind-mounted, host-owned 0700 repo - api and web crash-looped with "project root does not exist" / "can't cd to /app/bunyip-web", and Traefik returned 404 with no healthy backend. Export the correctly-named vars so the user mapping matches the host.Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
compose.dev.yml interpolates ${HOST_UID}/${HOST_GID} for the container `user:` mapping and the dev-image build args, but the justfile exported UID/GID, so HOST_UID was never set and fell back to 1000. On a host where the developer's uid is not 1000 (e.g. 10002), the container ran as 1000 and could not read the bind-mounted, host-owned 0700 repo - api and web crash-looped with "project root does not exist" / "can't cd to /app/bunyip-web", and Traefik returned 404 with no healthy backend. Export the correctly-named vars so the user mapping matches the host. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>