Image was build using code-server_4.15.0_amd64.deb
ssh into container cat .config/code-server/config.yaml it contain the password
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.yamlwas mounted to ovveride the default values getconfig.yamlinto host by copying this from inside the container
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!
Content type
Image
Digest
sha256:825a37fa9…
Size
636.2 MB
Last updated
about 3 years ago
docker pull skd93/codeserver:v1