Skip to content

Dockerized port of Laravel Valet for docker development

Notifications You must be signed in to change notification settings

marcusmyers/docker-valet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

docker-valet

Introduction

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.

Installation

git clone https://github.com/marcusmyers/docker-valet
cd docker-valet
script/bootstrap <interface> # This could be eth0 or your wifi interface

Usage

Setup 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.0

License

Docker Valet is open-sourced software licensed under the MIT license

About

Dockerized port of Laravel Valet for docker development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages