Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
When using caddy instead of nginx they tell you to bind the volumes of the certificates to the host system.
-
@Wombat i dont have experience with nginx, but its faster and way easier than apache.
-
If you're using let's encrypt, I personally think Linuxserver.io has an amazing container for that. And if you use a dns service that has a certbot plugin, you don't even have to worry about redirecting traffic to the container that's fetching the certs, like you'd normally do
-
olback107886yI run nginx outside my containers and and connect everything with reverse proxys. Works great and is easy to manage.
-
it is simple, mount your certificates folder to your container, to make updating certs easier than having to work with the container it self.
Now, in nginx, you need to tell it where your certs are, simply point nginx to the folder of your container that you are mounting to host
For me, I usually keep nginx on the host rather than running in container, and I usually put a proxy server infront of my main server, and make proxy server talk on local network to docker server. Of course using https. Or you can take it a step further and make a private VPN between your servers -
I follow this tutorial every time I want to use nginx and let's encrypt: https://digitalocean.com/community/...
-
Wombat102436y@gitpush I know this tutorial. I am using it too. But in combination with Docker it all seems way more complicated to me. I am even unsure now, if docker will actually make things easier... 😥
-
@Wombat while it definitely isn't just a one solution fixes all, docker will definitely help, once you've got it figured. It's just that that part can be a bit tricky
Related Rants
Why is Docker + SSL certificates so confusing? Or do I just have bad resources?
I just want to know how to compose an Docker, Nginx setup with encryption.
rant
docker
encryption
nginx