From 6fc74b1f19b8b266b93ebe05dfb7dd7cc312ba30 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Sun, 19 Apr 2026 19:11:36 +0200 Subject: [PATCH] Add bind mount pre-creation note to deploy post-setup instructions --- deploy/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deploy/README.md b/deploy/README.md index 4faf110..50847e3 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -163,6 +163,18 @@ openstack server add security group opencode-devbox ## After VM setup +If you uncomment any bind mounts in `docker-compose.yml` (e.g. `~/.aws`, `~/.config/opencode`), create the directories first — Docker creates missing bind mount paths as root-owned, which causes permission issues: + +```bash +# Only create directories for mounts you uncomment +mkdir -p ~/.aws # AWS Bedrock SSO +mkdir -p ~/.config/opencode # persistent opencode config +mkdir -p ~/.config/nvim # custom neovim config +mkdir -p ~/.agents/skills # opencode agent skills +``` + +Named volumes (`devbox-data`, `devbox-uv`, etc.) are managed by Docker and need no pre-creation. + ```bash mkdir -p ~/opencode-devbox && cd ~/opencode-devbox curl -sL https://gitea.jordbo.se/joakimp/opencode-devbox/raw/branch/main/docker-compose.yml -o docker-compose.yml