Sign inSign up

skd93/codeserver

By skd93

Updated about 3 years ago

Code server image

Image
0

51

skd93/codeserver repository overview

Code Server image.

Info

Image was build using code-server_4.15.0_amd64.deb

Password

ssh into container cat .config/code-server/config.yaml it contain the password

run this container

create docker-compose.yml and paste the below

version: '3'
services:
    codeserverubuntu:
        extra_hosts:
             - "host.docker.internal:host-gateway"      
        image: skd93/codeserver:v1
        ports:
            - 8989:8080   
        volumes:
            - ./config.yaml:/home/codeserver/.config/code-server/config.yaml
            - ./workspace:/workspace

- ./config.yaml:/home/codeserver/.config/code-server/config.yaml was mounted to ovveride the default values get config.yaml into host by copying this from inside the container

setting this behind nginx

Update /etc/nginx/sites-available/code-server using sudo with the following configuration:

server {
    listen 80;
    listen [::]:80;
    server_name mydomain.com;

    location / {
      proxy_pass http://localhost:8080/;
      proxy_set_header Host $host;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection upgrade;
      proxy_set_header Accept-Encoding gzip;
    }
}

Be sure to replace mydomain.com with your domain name!

Tag summary

Content type

Image

Digest

sha256:825a37fa9

Size

636.2 MB

Last updated

about 3 years ago

docker pull skd93/codeserver:v1