Add VS Code server volume to docker-compose examples and persistence tables
This commit is contained in:
@@ -199,6 +199,7 @@ Understanding what survives container restarts and what doesn't:
|
|||||||
| `/home/developer/.local/share/uv` | Named volume (if configured) | ✅ Yes — Docker volume | Python installs, uv tool installs |
|
| `/home/developer/.local/share/uv` | Named volume (if configured) | ✅ Yes — Docker volume | Python installs, uv tool installs |
|
||||||
| `/home/developer/.rustup` | Named volume (if configured) | ✅ Yes — Docker volume | Rust toolchains |
|
| `/home/developer/.rustup` | Named volume (if configured) | ✅ Yes — Docker volume | Rust toolchains |
|
||||||
| `/home/developer/.cargo` | Named volume (if configured) | ✅ Yes — Docker volume | Cargo binaries, registry cache |
|
| `/home/developer/.cargo` | Named volume (if configured) | ✅ Yes — Docker volume | Cargo binaries, registry cache |
|
||||||
|
| `/home/developer/.vscode-server` | Named volume (if configured) | ✅ Yes — Docker volume | VS Code server and extensions |
|
||||||
| `/home/developer/.config/opencode` | Host bind mount (if configured) | ✅ Yes — lives on host | opencode.json, oh-my-opencode-slim.json, skills |
|
| `/home/developer/.config/opencode` | Host bind mount (if configured) | ✅ Yes — lives on host | opencode.json, oh-my-opencode-slim.json, skills |
|
||||||
|
|
||||||
### Key points
|
### Key points
|
||||||
@@ -381,6 +382,8 @@ services:
|
|||||||
# Optional: persist Rust toolchains and cargo data
|
# Optional: persist Rust toolchains and cargo data
|
||||||
# - devbox-rustup:/home/developer/.rustup
|
# - devbox-rustup:/home/developer/.rustup
|
||||||
# - devbox-cargo:/home/developer/.cargo
|
# - devbox-cargo:/home/developer/.cargo
|
||||||
|
# Optional: persist VS Code server and extensions
|
||||||
|
# - devbox-vscode:/home/developer/.vscode-server
|
||||||
# Mount AWS config for Bedrock SSO (required for amazon-bedrock provider)
|
# Mount AWS config for Bedrock SSO (required for amazon-bedrock provider)
|
||||||
# - ~/.aws:/home/developer/.aws
|
# - ~/.aws:/home/developer/.aws
|
||||||
# Optional: mount opencode config directory (persists config changes across restarts)
|
# Optional: mount opencode config directory (persists config changes across restarts)
|
||||||
@@ -395,6 +398,7 @@ volumes:
|
|||||||
# devbox-uv:
|
# devbox-uv:
|
||||||
# devbox-rustup:
|
# devbox-rustup:
|
||||||
# devbox-cargo:
|
# devbox-cargo:
|
||||||
|
# devbox-vscode:
|
||||||
```
|
```
|
||||||
|
|
||||||
Docker Compose loads `.env` automatically from the same directory. All variables from `.env` are passed to the container via `env_file`. Do **not** hardcode provider settings in the `environment:` section — use `.env` instead.
|
Docker Compose loads `.env` automatically from the same directory. All variables from `.env` are passed to the container via `env_file`. Do **not** hardcode provider settings in the `environment:` section — use `.env` instead.
|
||||||
|
|||||||
@@ -456,6 +456,7 @@ Container (Debian bookworm)
|
|||||||
| `/home/developer/.local/share/uv` | Named volume `devbox-uv` (if configured) | ✅ Yes | Python installs, uv tool installs |
|
| `/home/developer/.local/share/uv` | Named volume `devbox-uv` (if configured) | ✅ Yes | Python installs, uv tool installs |
|
||||||
| `/home/developer/.rustup` | Named volume `devbox-rustup` (if configured) | ✅ Yes | Rust toolchains |
|
| `/home/developer/.rustup` | Named volume `devbox-rustup` (if configured) | ✅ Yes | Rust toolchains |
|
||||||
| `/home/developer/.cargo` | Named volume `devbox-cargo` (if configured) | ✅ Yes | Cargo binaries, registry cache |
|
| `/home/developer/.cargo` | Named volume `devbox-cargo` (if configured) | ✅ Yes | Cargo binaries, registry cache |
|
||||||
|
| `/home/developer/.vscode-server` | Named volume `devbox-vscode` (if configured) | ✅ Yes | VS Code server and extensions |
|
||||||
| `/home/developer/.config/opencode` | Host bind mount (if configured) | ✅ Yes | opencode.json, oh-my-opencode-slim.json, skills |
|
| `/home/developer/.config/opencode` | Host bind mount (if configured) | ✅ Yes | opencode.json, oh-my-opencode-slim.json, skills |
|
||||||
|
|
||||||
**opencode config** (`opencode.json`) is auto-generated from `OPENCODE_PROVIDER` on each start. It sets provider and model only — no MCP servers. To persist config changes and use custom settings, mount the config directory from the host (see Custom opencode config above).
|
**opencode config** (`opencode.json`) is auto-generated from `OPENCODE_PROVIDER` on each start. It sets provider and model only — no MCP servers. To persist config changes and use custom settings, mount the config directory from the host (see Custom opencode config above).
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ services:
|
|||||||
# - devbox-rustup:/home/developer/.rustup
|
# - devbox-rustup:/home/developer/.rustup
|
||||||
# - devbox-cargo:/home/developer/.cargo
|
# - devbox-cargo:/home/developer/.cargo
|
||||||
|
|
||||||
|
# Optional: persist VS Code server and extensions across container recreations
|
||||||
|
# - devbox-vscode:/home/developer/.vscode-server
|
||||||
|
|
||||||
# Optional: AWS credentials/SSO config (not read-only — SSO writes token cache)
|
# Optional: AWS credentials/SSO config (not read-only — SSO writes token cache)
|
||||||
# - ~/.aws:/home/developer/.aws
|
# - ~/.aws:/home/developer/.aws
|
||||||
|
|
||||||
@@ -62,3 +65,4 @@ volumes:
|
|||||||
devbox-uv:
|
devbox-uv:
|
||||||
# devbox-rustup:
|
# devbox-rustup:
|
||||||
# devbox-cargo:
|
# devbox-cargo:
|
||||||
|
# devbox-vscode:
|
||||||
|
|||||||
Reference in New Issue
Block a user