Skip to content

EC2 deployment #2677

Answered by nooobcoder
free2fork asked this question in Q&A
Feb 5, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

@free2fork please use -p 8080:8080 to bind it to the default port and not like -p 127.0.0.1:8080:8080. Doing so would expose the container on the localhost only and would not be accessible globally.

AN additional information, you can bind an extra volume target to persist the user data on container updates
You need to bind the following volume to a location
/home/coder/.local/share/code-server
As of now, this is not so discussed about, but without this binding, the code-server loses it's data on container update. Binding only the .config is not enough.

BELOW IS THE DOCKER RUN THAT I USE TO DEPLOY MY CODE-SERVER WITH A SELF-SIGNED CERTIFICATE

COMMAND TO GENERATE A SELF SIGNED CERTIFICATE

G…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@free2fork
Comment options

Comment options

You must be logged in to vote
4 replies
@free2fork
Comment options

@nooobcoder
Comment options

@free2fork
Comment options

@nooobcoder
Comment options

Answer selected by code-asher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants