Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> you need certificates to start the NGINX server but you need the NGINX server to issue certificates?

I just pre-populate with a self-signed cert to start, though I'd have to check how to do that in docker.





exactly! it all sounds easy unless you want to run stuff inside docker at which point there is a serious lack of documentation and resources

Okay, it seems like if you're using compose this is now doable: https://stackoverflow.com/questions/70322031/does-docker-com... So you'd make an init container that runs something like `test -f /certs/whatever.crt || openssl command to generate cert` and tell compose to run that before the real web server container.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: