title: Introduction type: index
LaraDock strives to make the PHP development experience easier and faster.
It contains pre-packaged Docker Images that provides you a wonderful development environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines.
LaraDock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, WordPress, Drupal...).
Let's see how easy it is to install NGINX
, PHP
, Composer
, MySQL
, Redis
and beanstalkd
:
1 - Clone LaraDock inside your PHP project:
git clone https://github.com/Laradock/laradock.git
2 - Enter the laradock folder and run this command:
docker-compose up -d nginx mysql redis beanstalkd
3 - Open your .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 :)
Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux, Mac OS and Windows.
Vagrant creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.
Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you lightweight Virtual Containers, that share the same kernel and allow to safely execute independent processes.
In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.
Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).
LaraDock It's like Laravel Homestead but for Docker instead of Vagrant.
LaraDock and Homestead both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).
Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.
LaraDock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers.
Running a virtual container is much faster than running a full virtual Machine. Thus LaraDock is much faster than Homestead.
What's better than a Demo Video:
Dockerfile
.Dockerfile
).docker-compose
).If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)
You are welcome to join our chat room on Gitter.