Skip to content

markhemstead/traefik-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

$ git clone https://github.com/markhemstead/traefik-local.git
$ cd traefik-local
$ docker network create traefik
$ docker-compose up -d

Install mkcert to take advantage of local SSL

$ brew install mkcert
$ mkcert -install
$ cd certs/
$ mkcert -cert-file cert.csr -key-file priv.key muzzapi.local *.muzzapi.local muzz.local *.muzz.local
$ cat priv.key cert.csr > bundle.pem

Update /etc/hosts

Add to bottom

127.0.0.1 traefik api.muzzapi.local dashboard.muzzapi.local wali.muzz.local messenger.muzzapi.local
::1       traefik api.muzzapi.local dashboard.muzzapi.local wali.muzz.local messenger.muzzapi.local

Update .env files

Any references to http://localhost:{port} can be changed to https://.muzzapi.local

Postman

To allow for self-signed SSL certificates to be used, the rootCA.pem file needs to be added in Preferences > Certificates > CA Certificates.
To find the location of rootCA.pem, run in a terminal

$ mkcert -CAROOT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published