https://github.com/marcusmyers/docker-valet
Dockerized port of Laravel Valet for docker development
https://github.com/marcusmyers/docker-valet
docker proxy traefik valet
Last synced: about 1 year ago
JSON representation
Dockerized port of Laravel Valet for docker development
- Host: GitHub
- URL: https://github.com/marcusmyers/docker-valet
- Owner: marcusmyers
- Created: 2017-03-25T12:06:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-30T21:07:47.000Z (over 9 years ago)
- Last Synced: 2025-03-26T11:44:43.993Z (over 1 year ago)
- Topics: docker, proxy, traefik, valet
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 25
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://en.wikipedia.org/wiki/Dnsmasq) and [traefik](http://traefik.io) in the background when your machine starts. With [DnsMasq](https://en.wikipedia.org/wiki/Dnsmasq) and [traefik](http://traefik.io) Docker Valet proxies all requests on the `*.dev` domain to point to docker web apps on your local machine.
## Installation
```shell
git clone https://github.com/marcusmyers/docker-valet
cd docker-valet
script/bootstrap # 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.
```yaml
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](http://opensource.org/licenses/MIT)