A Docker based laravel development environment with minimal dependencies.
Fork: laradock
Quick Overview#
Let’s see how easy it is to setup our demo stack PHP
, NGINX
, MySQL
, Redis
and Composer
:
1 - Enter the laradock folder and rename .env.example
to .env
.
cp .env.example .env
2 - Run your containers:
docker-compose up -d nginx mysql phpmyadmin redis workspace
3 - Open your project’s .env
file and set the following:
DB_HOST=mysql
REDIS_HOST=redis
QUEUE_HOST=beanstalkd
4 - Open your browser and visit localhost: http://localhost
.
That's it! enjoy :)
MIT © Mahmoud Zalt