Skip to content

CushItRealGood/code-server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Server+

cool badge icon Docker Pulls

code-server-docker is browser accessible VS Code compiled by cdr with some addidtional tools. This project executes shell scripts that installs the latest versions of Terraform and AWSCLI on top of the code-server base image.

Docker Run

should operate as the following:

docker run -it -p 127.0.0.1:8080:8080 -v "$PWD:/home/coder/project" cush/code-server

Docker-Compose

A docker compose example for the base image can be found here. Below is a version similar to my own which shows how one would run this container in the context of using a reverse proxy and facing the internet.

---
version: "2"
services:
  vscode:
    image: cush/code-server:latest
    container_name: vscode
    restart: unless-stopped
    networks:
      - dockernet
    environment:
      - PUID=1000
      - GUID=1000
      - PASSWORD=${PASSWORD}
    volumes:
      - /mnt/configmount/vscode:/home
      - /home/vagrant/.ssh/:/home/coder/.ssh/ #avoid potential ssh key permission issues if using Windows storage and remote git repositories
    labels:
      - "traefik.enable=true"
      - "traefik.backend=vscode"
      - "traefik.frontend.rule=Host:code.cushenberry.com"
      - "traefik.port=8080"
      - "traefik.docker.network=dockernet"

About

Run Terraform, AWSCLI, and VS Code in Docker

Resources

Stars

Watchers

Forks