3 ms·
> 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, th
by yjftsjthsd-h 1y ago
> 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.
- vivzkestrel 1y agoexactly! it all sounds easy unless you want to run stuff inside docker at which point there is a serious lack of documentation and resources
- yjftsjthsd-h 1y agoOkay, it seems like if you're using compose this is now doable: https://stackoverflow.com/questions/70322031/does-docker-compose-support-init-container 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.