diff --git a/AGENTS.md b/AGENTS.md index 31fe480..d30a7be 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,7 +5,7 @@ - Every stack has at least 3 files: `compose.yaml` (dockhand style), `sample.env`, `README.md` - `_dev` = experimental, `_notes` = docs/minimal examples, no suffix = production-ready - Always references an external `proxy` network (`docker network create proxy` once) -- Volumes use `${VOL_PATH:-/data}` as the base path (absolute `/data`, never `./data`) +- Volumes use `${VOL_PATH:-/data}` as the base path (absolute `/data`, never `./data`); project directories use `${VOL_PROJECTS:-/data}` - Timezone defaults to `America/Vancouver`, but only include if the container requires it. - Restart policy, image tag, and port are configurable via env vars with sensible defaults - New stacks: copy from `_docs/template-compose.md` and `_docs/template-readme.md` diff --git a/opencode/compose.yaml b/opencode/compose.yaml index f274fb4..b5aa19c 100644 --- a/opencode/compose.yaml +++ b/opencode/compose.yaml @@ -7,8 +7,7 @@ services: volumes: - ${VOL_PATH:-/data}/opencode/config:/config - - ${VOL_PATH:-/data}/opencode/data:/data - - ${VOL_PATH:-/data}/opencode/projects:/projects + - ${VOL_PROJECTS:-/data/projects}:/projects environment: - OPENCODE_PORT=${OPENCODE_PORT:-4096} diff --git a/opencode/sample.env b/opencode/sample.env index 594bb8b..31116c0 100644 --- a/opencode/sample.env +++ b/opencode/sample.env @@ -1,6 +1,7 @@ OPENCODE_IMAGE_NAME=ghcr.io/anomalyco/opencode:latest OPENCODE_RESTART=unless-stopped VOL_PATH=/home/youruser/.local/share +VOL_PROJECTS=/home/youruser/projects OPENCODE_PORT=4096 OPENCODE_HOSTNAME=0.0.0.0 OLLAMA_HOST=http://localhost:11434 \ No newline at end of file diff --git a/vscode/compose.yaml b/vscode/compose.yaml index 7272b08..033b81a 100644 --- a/vscode/compose.yaml +++ b/vscode/compose.yaml @@ -6,7 +6,7 @@ services: restart: ${VSCODE_RESTART:-unless-stopped} volumes: - - ${VOL_PATH:-./data}/vscode/data:/data + - ${VOL_PROJECTS:-/data/projects}:/data - ${VOL_PATH:-./data}/vscode/config:/config environment: diff --git a/vscode/sample.env b/vscode/sample.env index 8a010b5..65eeadd 100644 --- a/vscode/sample.env +++ b/vscode/sample.env @@ -1,5 +1,6 @@ # ===== Paths ===== VOL_PATH=/data +VOL_PROJECTS=/data # ===== Code Server ===== VSCODE_IMAGE=lscr.io/linuxserver/code-server:latest