- Consider using zsh with dotenv plugin, otherwise you need to run
source .in
every time you want to use this project. So ensure the.in
script runs before continuing make gencerts
; this will create a root certificate in.development
directory ifBUILD_ENV
was set to "development" in step 1make build
; ads teh root CA certificate to the docker environment and prepares nginxmake up
; for "development" the certbot container will just exit, the ingress container should first generate TLS certificates for each service (defined indomains.txt
) then direct requests to the correct container.
Logs: docker-compose logs -f
Error message: Can't open /tmp/rootCA.pem for reading, No such file or directory
This occurs when the ingress container entrypoint script cannot access the root CA certificate that was created using make gencerts
because it will actually delete it's own copy of the root CA cert on purpose before nginx starts serving requests.
To solve this error, simply run make build
and then make up
again
Example: nginx: [emerg] host not found in upstream "website" in /etc/nginx/conf.d/assets.conf:40
This occurs when you try to run nginx in the ingress container before you have the upstream service running, the the example case the website project is not running so you should go to that project and run the website container and then come back to start the ingress container.