Code-server Deployment | Part 7
What is Code-server?
Run VS Code on any machine anywhere and access it in the browser. Code on any device with a consistent development environment. Use cloud servers to speed up tests, compilations, downloads, and more. Preserve battery life when you're on the go; all intensive tasks run on your server.
Get 20€ in cloud credits to get started with Hetzner on this link.
Video Walkthrough
Installation
In this case, we will use our Portainer instance to deploy Code-server stack, please follow video walkthrough.
Open your Portainer instance, create new stack and paste following installation code:
version: "2.1"
services:
code-server:
image: lscr.io/linuxserver/code-server:latest
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=[YOUR-VALUE]
- PASSWORD=[YOUR-VALUE]
- HASHED_PASSWORD= #optional
- SUDO_PASSWORD=[YOUR-VALUE]
- SUDO_PASSWORD_HASH= #optional
# - PROXY_DOMAIN=coder.webnestify.cloud #optional
- DEFAULT_WORKSPACE=/home #optional
volumes:
- ./code-server/config:/config
ports:
- 8443:8443
restart: unless-stopped
Replace [YOUR VALUE] with your own values!
Make sure everything is alright and click deploy stack.
About Webnestify
Imagine a world where you can focus on your business and less time maintaining your cloud infrastrucure. With Webnestify cloud based solutions, we provide customized solutions for all types of companies to meet their needs; no matter how big or small they may be!
Read our reviews on Trustpilot!
Subscribe to our YouTube channel!
If you need to setup your own Docker instances or need help with security, visit our Docker deployment service.
