From ff9b9ed313b24f9493f4d62ccd457453b862c459 Mon Sep 17 00:00:00 2001 From: Nick Yeoman Date: Tue, 14 Apr 2026 18:53:12 -0700 Subject: [PATCH] fixed up vscode changed default vol to /data for easier testing --- README.md | 13 ++++++++- archivebox/sample.env | 2 +- code-server_dev/README.md | 7 ----- code-server_dev/docker-compose.yml | 14 ---------- code-server_dev/sample.env | 7 ----- invokeai/sample.env | 2 +- qbittorrent/sample.env | 2 +- thunderbird/sample.env | 2 +- vscode/README.md | 43 ++++++++++++++++++++++++++++++ vscode/compose.yaml | 25 +++++++++++++++++ vscode/sample.env | 12 +++++++++ 11 files changed, 96 insertions(+), 33 deletions(-) delete mode 100644 code-server_dev/README.md delete mode 100644 code-server_dev/docker-compose.yml delete mode 100644 code-server_dev/sample.env create mode 100644 vscode/README.md create mode 100644 vscode/compose.yaml create mode 100644 vscode/sample.env diff --git a/README.md b/README.md index 0fb5110..3ca7ea0 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,22 @@ Directories ending with _dev contain projects that are still under development o Directories ending with _notes contain projects that usually don’t require a full Docker Compose file. They may include notes, example commands, or minimal Compose files just to illustrate setup. For example, the ollama project has a docker-compose.yml showing CPU vs GPU usage. +## Test a container + +Make sure you have a /data created first on your system. + +``` +docker compose --env-file sample.env up -d + +# then down +docker compose --env-file sample.env down +``` + ### Decisions #### container_name -As we are going to rely on COMPOSE_PROJECT_NAME to create our project names, container_name has been left out of the template intentionally. +container_name has been left out of the template intentionally. #### Paths diff --git a/archivebox/sample.env b/archivebox/sample.env index 88865f3..062a6b7 100644 --- a/archivebox/sample.env +++ b/archivebox/sample.env @@ -1,5 +1,5 @@ # ARCHIVEBOX -VOL_PATH=./data +VOL_PATH=/data ARCHIVEBOX_IMAGE=archivebox/archivebox:stable # ARCHIVEBOX_IMAGE=archivebox/archivebox:sha-1d49bee # locked example ARCHIVEBOX_RESTART=unless-stopped diff --git a/code-server_dev/README.md b/code-server_dev/README.md deleted file mode 100644 index 585a451..0000000 --- a/code-server_dev/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# code-server - -Last Updated: Sat August 31, 2024 14:58:23 PDT - -## Overview - -Proxy Port: 8443 diff --git a/code-server_dev/docker-compose.yml b/code-server_dev/docker-compose.yml deleted file mode 100644 index d71e20f..0000000 --- a/code-server_dev/docker-compose.yml +++ /dev/null @@ -1,14 +0,0 @@ -services: - code-server: - image: ${CODE-SERVER_IMAGE:-null} - restart: unless-stopped - environment: - - PUID=1000 - - PGID=1000 - - TZ=${TZ:-America/Vancouver} - - PASSWORD=${CODE-SERVER_PASSWORD:-RanDoMChangeMe} - - DEFAULT_WORKSPACE=/data - - PROXY_DOMAIN=${CODE-SERVER_DOMAIN:-localhost} - volumes: - - ${VOL_PATH:-./data}/codeserver:/data - - ${VOL_PATH:-./data}/codeserver-config:/config" diff --git a/code-server_dev/sample.env b/code-server_dev/sample.env deleted file mode 100644 index 8696b7c..0000000 --- a/code-server_dev/sample.env +++ /dev/null @@ -1,7 +0,0 @@ -COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks -VOL_PATH=./data #HELP: volpath -TZ=America/Vancouver -# code-server -CODE-SERVER_IMAGE=lscr.io/linuxserver/code-server:latest -CODE-SERVER_PASSWORD=RanDoMChangeMe #HELP: gen32 -CODE-SERVER_DOMAIN=localhost \ No newline at end of file diff --git a/invokeai/sample.env b/invokeai/sample.env index e42ac48..0504e0a 100644 --- a/invokeai/sample.env +++ b/invokeai/sample.env @@ -1,4 +1,4 @@ INVOKEAI_IMAGE=ghcr.io/invoke-ai/invokeai:latest INVOKEAI_RESTART=unless-stopped INVOKEAI_PORT=9090 -VOL_PATH=./data +VOL_PATH=/data diff --git a/qbittorrent/sample.env b/qbittorrent/sample.env index 345a51b..ce88a8d 100644 --- a/qbittorrent/sample.env +++ b/qbittorrent/sample.env @@ -2,4 +2,4 @@ QBT_IMAGE=trigus42/qbittorrentvpn:latest QBT_PASS=01234567890 CONFIG_PATH=/vol_path/to/data -VOL_PATH=/project-dir/project-name/data +VOL_PATH=/data diff --git a/thunderbird/sample.env b/thunderbird/sample.env index 4969953..88bf580 100644 --- a/thunderbird/sample.env +++ b/thunderbird/sample.env @@ -1,4 +1,4 @@ -VOL_PATH=./data +VOL_PATH=/data TZ=America/Vancouver THUNDERBIRD_IMAGE=jlesage/thunderbird:latest THUNDERBIRD_PORT=5800 diff --git a/vscode/README.md b/vscode/README.md new file mode 100644 index 0000000..b60b1ad --- /dev/null +++ b/vscode/README.md @@ -0,0 +1,43 @@ +# Code Server + +## Overview + +VS Code + +## Project Details + +- **Project Website:** [Link](https://code.visualstudio.com/) +- **Container Image:** [Docker Hub](https://hub.docker.com/r/linuxserver/code-server) +- **Reverse Proxy Port:** `8443` + + +## Additional Notes / Gotchas + +For setup you need to set the user and group ID +you can do that by using ```id username``` +or by changing the vol with ```chown -R user:group path/``` + +### Set git info + +Open terminal and run: +``` +git config --global user.name "Name" +git config --global user.email "your-email@example.com" +``` + +You also want to generate a key for your connection: +``` +ssh-keygen -t ed25519 -C "c@nickyeoman.com" +cat ~/.ssh/id_ed25519.pub +``` + +## Dockhand Stack, Deploy from Git + +Cookbooks Repository +stackname: vscode +Compose file path: vscode/compose.yaml +Additional env file (optional): vscode/sample.env + +Then "Load" vscode/sample.env into the Environmental variables in dockhand + +Create the Stack \ No newline at end of file diff --git a/vscode/compose.yaml b/vscode/compose.yaml new file mode 100644 index 0000000..7272b08 --- /dev/null +++ b/vscode/compose.yaml @@ -0,0 +1,25 @@ +# Code Server + +services: + code-server: + image: ${VSCODE_IMAGE:-lscr.io/linuxserver/code-server:latest} + restart: ${VSCODE_RESTART:-unless-stopped} + + volumes: + - ${VOL_PATH:-./data}/vscode/data:/data + - ${VOL_PATH:-./data}/vscode/config:/config + + environment: + # App-specific + - PUID=${VSCODE_PUID:-1000} + - PGID=${VSCODE_PGID:-1000} + - PASSWORD=${VSCODE_PASSWORD:-RanDoMChangeMe} + - DEFAULT_WORKSPACE=${DEFAULT_WORKSPACE:-/data} + - PROXY_DOMAIN=${VSCODE_DOMAIN:-localhost} + + ports: + - "${VSCODE_PORT:-8443}:8443" + +networks: + proxy: + external: true diff --git a/vscode/sample.env b/vscode/sample.env new file mode 100644 index 0000000..8a010b5 --- /dev/null +++ b/vscode/sample.env @@ -0,0 +1,12 @@ +# ===== Paths ===== +VOL_PATH=/data + +# ===== Code Server ===== +VSCODE_IMAGE=lscr.io/linuxserver/code-server:latest +VSCODE_RESTART=unless-stopped +VSCODE_PASSWORD=ChangeThisNow +VSCODE_PORT=8443 +VSCODE_DOMAIN=localhost +DEFAULT_WORKSPACE=/data +VSCODE_PUID=1000 +VSCODE_PGID=1000 \ No newline at end of file