Introductions on Laradock Docs http://laradock.io/introduction/index.xml Recent content in Introductions on Laradock Docs Hugo -- gohugo.io en-us Introduction http://laradock.io/introduction/ Mon, 01 Jan 0001 00:00:00 +0000 http://laradock.io/introduction/ <p>LaraDock strives to make the PHP development experience easier and faster.</p> <p>It contains pre-packaged Docker Images that provides you a wonderful <em>development</em> environment without requiring you to install PHP, NGINX, MySQL, Redis, and any other software on your machines.</p> <p>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&hellip;).</p> <h2 id="quick-overview">Quick Overview</h2> <p>Let&rsquo;s see how easy it is to install <code>NGINX</code>, <code>PHP</code>, <code>Composer</code>, <code>MySQL</code>, <code>Redis</code> and <code>beanstalkd</code>:</p> <p>1 - Clone LaraDock inside your PHP project:</p> <pre><code class="language-shell">git clone https://github.com/Laradock/laradock.git </code></pre> <p>2 - Enter the laradock folder and run this command:</p> <pre><code class="language-shell">docker-compose up -d nginx mysql redis beanstalkd </code></pre> <p>3 - Open your <code>.env</code> file and set the following:</p> <pre><code class="language-shell">DB_HOST=mysql REDIS_HOST=redis QUEUE_HOST=beanstalkd </code></pre> <p>4 - Open your browser and visit localhost: <code>http://localhost</code>.</p> <pre><code class="language-shell">That's it! enjoy :) </code></pre> <p><a name="what-is-docker"></a></p> <h2 id="what-is-docker">What is Docker?</h2> <p><a href="https://www.docker.com">Docker</a> is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of <a href="https://en.wikipedia.org/wiki/Operating-system-level_virtualization">operating-system-level virtualization</a> on Linux, Mac OS and Windows.</p> <p><a name="why-docker-not-vagrant"></a></p> <h2 id="why-docker-not-vagrant">Why Docker not Vagrant!?</h2> <p><a href="https://www.vagrantup.com">Vagrant</a> creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.</p> <p>Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you <strong>lightweight</strong> Virtual Containers, that share the same kernel and allow to safely execute independent processes.</p> <p>In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.</p> <p>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).</p> <p><a name="laradock-vs-homestead"></a></p> <h2 id="laradock-vs-homestead-for-laravel-developers">LaraDock VS Homestead (For Laravel Developers)</h2> <blockquote> <p>LaraDock It&rsquo;s like Laravel Homestead but for Docker instead of Vagrant.</p> </blockquote> <p>LaraDock and <a href="https://laravel.com/docs/master/homestead">Homestead</a> both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).</p> <ul> <li><p>Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.</p></li> <li><p>LaraDock is a tool that controls Docker for you (using Docker &amp; Docker Compose official commands). And Docker manages your Virtual Containers.</p></li> </ul> <p>Running a virtual container is much faster than running a full virtual Machine. Thus <strong>LaraDock is much faster than Homestead</strong>.</p> <p><a name="Demo"></a></p> <h2 id="demo-video">Demo Video</h2> <p>What&rsquo;s better than a <strong>Demo Video</strong>:</p> <ul> <li>LaraDock <a href="https://www.youtube.com/watch?v=TQii1jDa96Y">v4.*</a></li> <li>LaraDock <a href="https://www.youtube.com/watch?v=-DamFMczwDA">v2.*</a></li> <li>LaraDock <a href="https://www.youtube.com/watch?v=jGkyO6Is_aI">v0.3</a></li> <li>LaraDock <a href="https://www.youtube.com/watch?v=3YQsHe6oF80">v0.1</a></li> </ul> <p><a name="features"></a></p> <h2 id="features">Features</h2> <ul> <li>Easy switch between PHP versions: 7.0, 5.6, 5.5&hellip;</li> <li>Choose your favorite database engine: MySQL, Postgres, MariaDB&hellip;</li> <li>Run your own combination of software: Memcached, HHVM, Beanstalkd&hellip;</li> <li>Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI&hellip;</li> <li>Easy to customize any container, with simple edit to the <code>Dockerfile</code>.</li> <li>All Images extends from an official base Image. (Trusted base Images).</li> <li>Pre-configured NGINX for Laravel.</li> <li>Easy to apply configurations inside containers.</li> <li>Clean and well structured Dockerfiles (<code>Dockerfile</code>).</li> <li>Latest version of the Docker Compose file (<code>docker-compose</code>).</li> <li>Everything is visible and editable.</li> <li>Fast Images Builds.</li> <li>More to come every week..</li> </ul> <p><a name="Supported-Containers"></a></p> <h2 id="supported-software-containers">Supported Software (Containers)</h2> <ul> <li><strong>Database Engines:</strong> <ul> <li>MySQL</li> <li>PostgreSQL</li> <li>MariaDB</li> <li>MongoDB</li> <li>Neo4j</li> <li>RethinkDB</li> </ul></li> <li><strong>Cache Engines:</strong> <ul> <li>Redis</li> <li>Memcached</li> <li>Aerospike</li> </ul></li> <li><strong>PHP Servers:</strong> <ul> <li>NGINX</li> <li>Apache2</li> <li>Caddy</li> </ul></li> <li><strong>PHP Compilers:</strong> <ul> <li>PHP-FPM</li> <li>HHVM</li> </ul></li> <li><strong>Message Queuing Systems:</strong> <ul> <li>Beanstalkd</li> <li>Beanstalkd Console</li> <li>RabbitMQ</li> <li>RabbitMQ Console</li> </ul></li> <li><strong>Tools:</strong> <ul> <li>PhpMyAdmin</li> <li>PgAdmin</li> <li>ElasticSearch</li> <li>Selenium</li> <li>Minio</li> <li>Workspace <ul> <li>PHP7-CLI</li> <li>Composer</li> <li>Git</li> <li>Linuxbrew</li> <li>Node</li> <li>Gulp</li> <li>SQLite</li> <li>xDebug</li> <li>Envoy</li> <li>Deployer</li> <li>Vim</li> <li>Yarn</li> <li>&hellip; Many other supported tools are not documented. (Will be updated soon)</li> </ul></li> </ul></li> </ul> <blockquote> <p>If you can&rsquo;t find your Software, build it yourself and add it to this list. Contributions are welcomed :)</p> </blockquote> <p><a name="Chat"></a></p> <h2 id="chat-with-us">Chat with us</h2> <p>You are welcome to join our chat room on Gitter.</p> <p><a href="https://gitter.im/LaraDock/laradock?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge"><img src="https://badges.gitter.im/LaraDock/laradock.svg" alt="Gitter" /></a></p>