Have you ever missed the VSCode on your tablet? Now there is a solution: run the VSCode on your NAS at home and access it with a browser. That will be possible when you run the Codeserver Docker container on your NAS.
Before you do this, you probably want to set up a wildcard certificate and a proxy server on your NAS. That will enable you to access the NAS outside your local network using HTTPS. How to do it, check this: How to Set Up Wildcard Certificate and Reverse Proxy on Synology NAS
You will also need to find out your UID and GID. Here are instructions to get those: How to find out your UID and GID on Synology NAS
And after you have sorted those things, you can set up the Codeserver as follows:
- Install Docker to the Synology NAS from Package Center
- Create a folder to map the codeserver files into,
docker/codeserver
works fine - Open the Docker app, search for linuxserver/code-server from the registry, and download the image (latest)
- Set the port mapping as 8377:8443
- Adjust the advanced settings as follows:
PUID: <your UID> PGID: <your GID> PROXY_DOMAIN: codeserver.<your DDNS domain> PASSWORD: <your very complex password> SUDO_PASSWORD: <your very complex password> TZ: <your timezone, e.g Europe/Helsinki>
- Map the /config to the folder you created earlier (
docker/codeserver
) - Set automatic restart
- Run the container
Now you should be able to navigate to codeserver.<your DDNS domain>
enter the password
and enjoy your fresh VSCode on server.