Skip to content

Instantly share code, notes, and snippets.

@muammar
Created November 19, 2019 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muammar/7675e62efd651c81baeea0694686dbef to your computer and use it in GitHub Desktop.
Save muammar/7675e62efd651c81baeea0694686dbef to your computer and use it in GitHub Desktop.
example with https docker code-server
docker run -it -p 0.0.0.0:8080:8080 -e PASSWORD=yourpassword \
-v /etc/letsencrypt/live/domain.dev/fullchain.pem:/home/coder/fullchain.pem \
-v /etc/letsencrypt/live/domain.dev/privkey.pem:/home/coder/privkey.pem \
-v /home/youruser:/home/coder/ \
codercom/code-server:v2 --cert /home/coder/fullchain.pem --cert-key /home/coder/privkey.pem --auth password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment