Skip to content

jgatjens/docker-nginx-https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOCKER + NGINX + HTTPS

Mac setup

Create the certificates.

openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Double click to install localhost.crt in your list of locally trusted roots.

mv -f locahost.crt ./nginx/cert/locahost.crt
mv -f locahost.key ./nginx/cert/locahost.key

Finally just run docker

docker compose up -d

About

DOCKER + NGINX + HTTPS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published