Sample repository to reproduce a small local development environment with trusted development certificates and Docker Stack.
Feedback welcome!
- https://dev.local domain thanks to mkcert.
- Docker stack examples.
- To generate the certificates, install mkcert first and then run:
make certs
- Add
dev.local
to your/etc/hosts
file.
# other entries...
127.0.0.1 dev.local
# you can add your custom hostnames as well...
127.0.0.1 name-a.dev.local
127.0.0.1 name-b.dev.local
127.0.0.1 name-n.dev.local
This sample contains Treafik Proxy that you can use as proxy across your docker containers. If some custom configuration is needed take a look into docker-stack directory.
make network
A proxy_net
network will be created with --attachable
option, so you will be able to attach your container apps to Traefik later.
make proxy
Now, navigate to https://dev.local 🎉
Feel free to send some Pull request or issue.
MIT license
© 2019 Jose Quintana