mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
fixed up vscode changed default vol to /data for easier testing
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user