Last active
March 15, 2021 17:56
-
-
Save Fazendaaa/289b72a80e2087577ee0fecee06e4417 to your computer and use it in GitHub Desktop.
Configure mkcert to traefik local development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| mkdir ~/.certs | |
| mkdir ~/.traefik | |
| git clone https://gist.github.com/Fazendaaa/a41a3d4bc4e693ac6f5fadc26817c520 | |
| git clone https://gist.github.com/Fazendaaa/d518f09567f50cda3018f00211bce5a1 | |
| cp a41a3d4bc4e693ac6f5fadc26817c520/* ~/.traefik | |
| cp d518f09567f50cda3018f00211bce5a1/* ~/.traefik | |
| sudo rm -r a41a3d4bc4e693ac6f5fadc26817c520 d518f09567f50cda3018f00211bce5a1 | |
| docker network create proxy | |
| mkcert -install | |
| sudo mkcert -cert-file ~/.certs/local-cert.pem -key-file ~/.certs/local-key.pem "docker.localhost" "*.docker.localhost" "domain.local" "*.domain.local" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment