-
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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
How do I mount my certificates? I was reading docker docs but I didn't understood anything ;-; Also how do I change Dockerfile |
Beta Was this translation helpful? Give feedback.
-
it should be easy as |
Beta Was this translation helpful? Give feedback.
-
Now i'm getting |
Beta Was this translation helpful? Give feedback.
-
@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! |
Beta Was this translation helpful? Give feedback.
-
@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 (#). |
Beta Was this translation helpful? Give feedback.
-
Just came across this issue. It should be in the documentation somewhere. Can't seem to find it. |
Beta Was this translation helpful? Give feedback.
@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 (#).