Docker Valet is a development environment for docker minimalists. No /etc/hosts file to manage, no ports to manage, no proxy configuration files. You can even share your sites publicly using local tunnels. Yeah, we like it too.
Docker Valet creates a valet docker network on your system to always run DnsMasq and traefik in the background when your machine starts. With DnsMasq and traefik Docker Valet proxies all requests on the *.dev domain to point to docker web apps on your local machine.
git clone https://github.com/marcusmyers/docker-valet
cd docker-valet
script/bootstrap <interface> # This could be eth0 or your wifi interfaceSetup your docker apps to use the valet network and add labels to the service you want proxy. Check out the example docker-compose file below.
version: 2
networks:
valet:
external: true
services:
db:
image: mysql
web:
image: marcusmyers/laravel
networks:
- valet
- default
labels:
- "traefik.frontend.rule=Host:laravel.dev"
- "traefik.port=80"
- "traefik.docker.network=valet"
command: php artisan serve --host=0.0.0.0Docker Valet is open-sourced software licensed under the MIT license