|
Hi! I'm total noob in docker, so I want to ask a question. I know how to run code-server with cert and cert-key without docker, but how to do it with docker? I tried this: But it runs server without HTTPS. Thanks |
Replies: 7 comments 1 reply
|
Heya @dimdenGD, make sure you mounted your certificates first, then invoke your certificates in the flags. You can use LE if you don't want to self-sign certificates, I think we outlined it pretty well on the quickstart. |
|
How do I mount my certificates? I was reading docker docs but I didn't understood anything ;-; Also how do I change Dockerfile |
|
it should be easy as |
|
Now i'm getting |
|
@dimdenGD you should use a reverse proxy so you don't have to expose your private key to the running container. You can use something like HAproxy or nginx even. Let me know if you need help! |
|
Just came across this issue. It should be in the documentation somewhere. Can't seem to find it. |
@dimdenGD check out my docker-compose.yml on my repo, it has a configured reverse proxy for SSL using just environment variables. Just remove the comments (#).