docker-https
nginx reverse proxy to support https for your docker containers
Installation:
- Setup mkcert
-
brew install mkcert
-
mkcert -install
-
mkcert localhost 127.0.0.1
-
Replace the generated
localhost+1-key.pem
andlocalhost+1.pem
in thecerts
directory -
Update
proxy_pass
innginx/nginx.conf
to whichever docker namespace your service is using (ensure you also update the port it exposes) -
Add the service to your
docker-compose.yml
docker-https/docker-compose.yml
Lines 5 to 11 in ad7aed7
-
docker-compose up -d https