Docker compose for VSCode server

  Apr 1, 2020      2m
   

Set up Visual Studio Code server for development environment

Docker compose for VSCode server

Set up VSCode server

The original repository:

Github: https://github.com/cdr/code-server

docker-compose.yml

version: '3.3'
services:
    code-server:
        image: codercom/code-server
        ports:
            - '8181:8080'
        volumes:
            - '$PWD:/home/coder/project'
        environment:
            PASSWORD: vscode
        user: root
        ipc: host
        restart: unless-stopped     # or "always"

Run docker container:

$ docker-compose up -d

Open your browser @ localhost:8181. Password to access: vscode (specified in the above script)

ps. Change the port 8181 to your favorite one. Thank you.


More docker-compose files for you: