Sample repository to reproduce a small local development environment with trusted certificates and Docker Stack. :white_check_mark:
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jose Quintana 69c8cc6626
chore: update docker stack
2 months ago
certs init 8 months ago
docker-stacks chore: update docker stack 2 months ago
.gitignore init 8 months ago
LICENSE.md init 8 months ago
Makefile chore: update docker stack 2 months ago
README.md chore: update docker stack 2 months ago

README.md

Docker Development Environment

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

Features

Requirements

Usage

Docker development stack includes:

make stack

Certificates

Command above will generate the certificates but it’s necessary to install mkcert first and then run.

Then add following entries to your /etc/hosts file:

  1. Add local.dev to your /etc/hosts file.
  2. Add registry.local.dev to your /etc/hosts file.
# other entries...
127.0.0.1		local.dev
127.0.0.1		registry.local.dev

# you can add your custom hostnames as well...
127.0.0.1		name-1.local.dev
127.0.0.1		name-2.local.dev
127.0.0.1		name-n.local.dev

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.

Proxy network

A traefik_net network will be created with --attachable option, so you will be able to attach your container apps to Traefik later.

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

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2019 Jose Quintana