feat(docker): run container as host user with bind-mounted workspace (#328)

* feat(docker): run container as host user with bind-mounted workspace


* fix(docker): warn on workspace gid mismatch as well as uid

* fix(docker): eval snippet passed as positional arg in container-user tests

* docs(installation): drop stale host repository access reference
This commit is contained in:
Chris Scott authored and GitHub committed 2026-07-28 11:30:50 -04:00
1 parent a73ac19bbc
commit 6c635397ba
10 files changed
+743 -4

No files matched your search

+3 -1
View File
@@ -14,6 +14,8 @@ services:
- "5103:5103"
environment:
- NODE_ENV=${NODE_ENV:-production}
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- HOST=0.0.0.0
- PORT=5003
- OPENCODE_SERVER_PORT=5551
@@ -46,7 +48,7 @@ services:
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY:-}
- VAPID_SUBJECT=${VAPID_SUBJECT:-}
volumes:
- opencode-workspace:/workspace
- ${OCM_WORKSPACE_HOST_PATH:-opencode-workspace}:/workspace
- opencode-data:/app/data
restart: unless-stopped
healthcheck: