I’ve been using VS Code as my primary editor for years and love using it. Emagine taking that experience to the browser and running VS Code with a consistent development environment?…you can - with the docker engine and code-server! Actually this how I manage and maintain my site here at Thanks to the good folks at who have made a ready to run container it is super easy getting it setup and running with the docker engine & docker-compose. In the compose file below I make sure to map in my homedir, so I can access the files located in the development folder. The site is running on Hugo and I have it setup against GitHub for source control. The VS Code terminal is connected to the actual VPS thru ssh, so I have access to all the Hugo command for publishing.

Docker Compose

If you are using docker engine and docker-compose here’s the compose file I’m using to run the application.

version: "2.1"
    container_name: code-server
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Copenhagen
      - PASSWORD=SuperSecretPassword #optional
      - HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=SuperSecretPassword #optional
      - SUDO_PASSWORD_HASH= #optional
      - #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
      - /home/<username>/code-server/config:/config
      - /home/<username>/development:/development
      - 8443:8443
    restart: unless-stopped


Working on this actual blog post in the browser with code server. Code Server