A snapshot of a laptop showing a currency chart

Deploy VS Code Code Server to Dokku

by Bravin Rutto · 07/14/2025

InfraDeploymentDokku

SSH into the Dokku host and create the application as follows:

# on the Dokku host
dokku apps:create codeserver

Point the application container to the git repository

dokku git:sync codeserver https://github.com/BravinR/code-server.git

dokku ps:rebuild codeserver Expose port 80 of the Dokku host to port 8080 of the codeserver container

dokku ports:add codeserver http:80:8080

To enable HTTPS, set your email address for Let's Encrypt

dokku letsencrypt:set codeserver email your@email.tld

Finally, enable Let's Encrypt for your codeserver application to provision a free SSL certificate:

dokku letsencrypt:enable codeserver

Your VS Code Code Server should now be accessible via HTTPS at the Dokku application's URL.