feat(docker): add DOCKER_UID and DOCKER_GID to .env and update compose.yml for user permissions
This commit is contained in:
parent
434f26d000
commit
ce8c58e953
|
|
@ -29,6 +29,12 @@ AUTH_MODE=local
|
|||
# REQUIRED when AUTH_MODE=local (must be non-placeholder and at least 50 chars).
|
||||
LOCAL_AUTH_TOKEN=
|
||||
|
||||
# --- Docker user (must match host uid:gid so containers can read host-owned files) ---
|
||||
# Run `id -u` and `id -g` on your host to get the right values.
|
||||
# Defaults to 1000:1000 which is correct for most single-user Linux installs.
|
||||
DOCKER_UID=1000
|
||||
DOCKER_GID=1000
|
||||
|
||||
# --- AI provider credentials (local mode only) ---
|
||||
# Pipeline reads local credential files on every boot and upserts provider rows
|
||||
# automatically — no manual configuration required if you have Claude Code or
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@ services:
|
|||
# like `backend/templates/`.
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
# Run as the host user so the container can read credential files mounted
|
||||
# from the host (e.g. ~/.claude/.credentials.json which has mode 600).
|
||||
# Set DOCKER_UID / DOCKER_GID in .env if your host uid:gid differs from 1000:1000.
|
||||
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
environment:
|
||||
|
|
|
|||
Loading…
Reference in New Issue