How to manage DNS cert in Docker container? #600
-
How can I add a domain certificate when running Nginx in a Docker container? I understand that certbot is commonly used, but installing third-party libraries like certbot on the default container is overly complicated. Is there an alternative method? Based on my research, unlike tools such as Kubernetes, what is the recommended way to manage certificates when serving Nginx through a Docker container? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are many solutions. I recommend this.
if you manage many proxy, at least 2 more. maybe this solution is good, but you have to sure docker container's port binding
alternatively, you want to use nginx image, then you should use certbot scheduler. in Github, there are many example docker-compose script. like this reference. I hope this recommendation is to help you. |
Beta Was this translation helpful? Give feedback.
There are many solutions. I recommend this.
if you manage many proxy, at least 2 more. maybe this solution is good, but you have to sure docker container's port binding
alternatively, you want to use nginx image, then you should use certbot scheduler. in Github, there are many example docker-compose script. like this reference.
I hope this recommendation is to help you.