Skip to content

Instantly share code, notes, and snippets.

@taufiqpsumarna
Last active September 24, 2024 18:34
Code Server Docker Compose File - Run VS Code on any machine anywhere and access it through the browser.

Code Server Docker Compose File

Run VS Code on any machine anywhere and access it through the browser.

Code anywhere: Code on your Chromebook, tablet, and laptop with a consistent dev environment. Develop on a Linux machine and pick up from any device with a web browser. Server-powered: Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. Preserve battery life when you're on the go since all intensive tasks runs on your server. Make use of a spare computer you have lying around and turn it into a full development environment. See https://github.com/cdr/code-server for more docs.

Dockerhub: https://hub.docker.com/r/codercom/code-server

---
version: "3.7"
services:
code-server:
image: codercom/code-server:4.16.1-ubuntu
container_name: code-server
environment:
- DOCKER_USER=$USER
- PASSWORD=Password #Replace this with your login password
volumes:
- ./config:/config
- $PWD:/home/coder/workspace
ports:
- 8080:8080
restart: unless-stopped
networks:
- code-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment