Self-hosted code-server instance with a few personal presets, for remote development.
- Visual Studio Code in the browser, using code-server
4.4.0
- JetBrains Mono as default editor font
- Vitesse theme (Dark Soft) as default editor theme
- Helium Icon Theme as default icon theme
- Prettier extension, for code formatting
- Svelte for VS Code extension, for Svelte Intellisense
- Docker for Visual Studio Code extension, for container management
- Vitest for VSCode extension, for Vitest test discovery
- Node Version Manager (nvm
0.39.1
) with node14.20.0
- Fast, disk space efficient Node package manager (pnpm
7.5.0
) - Docker
20.10.5
and Docker Compose1.25.0
Clone the hereby repo, add/edit settings at your convenience, and build the image.
git clone https://github.com/tommywalkie/codepod.git
docker build . --tag codepod:latest
Run as a single container:
docker run -it --name "codepod" \
-p 127.0.0.1:8080:8080 \
-e PASSWORD="XXXX" \
-v /var/run/docker.sock:/var/run/docker.sock \
codepod:latest
Run with Docker Compose:
version: '3.1'
services:
codepod:
context: https://github.com/tommywalkie/codepod.git
restart: unless-stopped
privileged: true
environment:
PASSWORD: XXXX # Enable authentication
ports:
- '8080:8080'
volumes:
- ./my-settings:/home/coder/.local/share/code-server # You may want to mount your editor settings folder
- /var/run/docker.sock:/var/run/docker.sock # Interact with Docker from inside the container