Skip to content

sleepingkiwi/nginx-proxy-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nginx proxy for local development with ssl

Based on this article

What?

Pairs with the WordPress Docker repo for easier local development with ssl certificates.

setup/first usage

This normally lives alongside all dev projects. i.e. at the root of a ~/dev directory

🔥 Before first run the local network needs to be created by running

docker network create nginx-proxy

After that you can bring this up using docker-compose up as normal

Set up an ssl cert for a local domain

If this is the first time setting up a cert:

Set up a local Cerificate Authority (CA)

You only need to do this step once - if you already have one then you don't need another for each site.

  • install mkcert
    • on macos that's brew install mkcert and brew install nss
  • run mkcert -install

If yoy already have a local CA set up:

Make self signed SSL certs for your local domain and put them in the ./certs dir

# cd into the ./certs dir at the root of this repo
mkcert -cert-file example-site.local.crt -key-file example-site.local.key example-site.local

About

Allows us to run multiple docker containers locally with full ssl support and qualified local URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published