😜 Experience VScode
🎨 Preview effect
pull image from docker hub
docker pull aouos/code-server
Build image
docker build --tag <name> .
docker run -it -p 8080:8080 --name <name> <code-server name> bash
Start code-server
code-server
Start in the background
nohup code-server >> /root/codeserver.log 2>&1 &
In the Dockerfile sibling directory :
docker-compose up -d
proxy port 8080
server {
listen 80;
listen [::]:80;
server_name vscode.aouos.com;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}