code-server
VS Code in the browser, hosted on a remote server.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml (Official)
version: "3.3"
services:
code-server:
image: codercom/code-server:latest
stdin_open: true
tty: true
container_name: code-server
ports:
- 8080:8080
volumes:
- $HOME/.local:/home/coder/.local
- $HOME/.config:/home/coder/.config
- $PWD:/home/coder/project
user: $(id -u):$(id -g)
environment:
- DOCKER_USER=$USERdocker-compose.yml (LinuxServer.io)
---
services:
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PASSWORD=password #optional
- HASHED_PASSWORD= #optional
- SUDO_PASSWORD=password #optional
- SUDO_PASSWORD_HASH= #optional
- PROXY_DOMAIN=code-server.my.domain #optional
- DEFAULT_WORKSPACE=/config/workspace #optional
volumes:
- /path/to/appdata/config:/config
ports:
- 8443:8443
restart: unless-stoppedResources
Website: https://coder.com/
GitHub: https://github.com/coder/code-server
Docker Hub (Official): https://hub.docker.com/r/codercom/code-server
Docker Hub (LinuxServer.io): https://hub.docker.com/r/linuxserver/code-server
Configuration: See the Docker Hub pages