Skip to content

Sample repository to reproduce a small local development environment with trusted certificates and Docker Stack. ✅

License

Notifications You must be signed in to change notification settings

joseluisq/local-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Development Environment

Sample repository to reproduce a small local development environment with trusted development certificates and Docker Stack.

Feedback welcome!

Features

Usage

Certificates

  1. To generate the certificates, install mkcert first and then run:
make certs
  1. 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

Docker stack

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.

Create a proxy network

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.

Traefik proxy

make proxy

Now, navigate to https://dev.local 🎉

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2019 Jose Quintana

About

Sample repository to reproduce a small local development environment with trusted certificates and Docker Stack. ✅

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published