!(https://hackernoon.com/hn-images/1*TktA6G_ZvLrmvF0ATXOBRQ.png)\n\nLaravel & docker\n\n> This article is a step-by-step to get started with Vessel ( the new way to setup the Laravel setup config with docker).\n\n> If your are not familiar with docker you can check my last article “ [A step by step guide to setup PHP (Laravel) environment (Linux)](https://hackernoon.com/a-step-by-step-guide-to-setup-php-laravel-environment-linux-50b55a4fd15e)”.\n\nIt is a long time that I am a big fan of chris fideo the author of [servers for hackers](https://serversforhackers.com/) ,one of the most rich source of content to learn server’s configurations , security ,database,docker and much more DevOps topics.\n\n[**Dockerizing your Application**](https://serversforhackers.com/dockerized-app) is one of the amazing free course, it’s a step-by-step docker workflow to develop a breeze for your application. According to Chris,Vessel is the result of this docker workflow more is an official that everyone could easily use.\n\n> **Let’s give it a try**\n\nVessel is a lightweight docker environment for Laravel, that means it is just a small set of files that set up a local docker development environment per project and there is no extra thing to install globally, expect Docker system itself.\n\n### Install Docker and Docker-compose\n\nDocker is an open source project based on Linux container, if you are not familiar yet with docker, this article “ [**A Beginner-Friendly Introduction to Containers, VMs and Docker**](https://medium.freecodecamp.org/a-beginner-friendly-introduction-to-containers-vms-and-docker-79a9e3e119b) ” by [Preethi Kasireddy](https://medium.com/@preethikasireddy) is the ideal place to take your first step.\n\nAt this moment Vessel only works on Mac and Linux because it uses a bash script to run Docker commands.\n\nFor Linux Ubuntu distribution the easiest way to install docker is by the following:\n\ncurl -fsSL get.docker.com | sudo sh \nsudo usermod -aG docker your-user // add your user to docker group\n\nTo Install docker compose run this command to download the latest version :\n\nsudo curl -L [https://github.com/docker/compose/releases/download/1.17.0/docker-compose-\\`uname](https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname) -s\\`-\\`uname -m\\` -o /usr/local/bin/docker-compose\n\nNext,Apply executable permissions to the binary.\n\nsudo chmod +x /usr/local/bin/docker-compose\n\nLearn more about docker installation : [docker](https://docs.docker.com/engine/installation/) , [docker-compose](https://docs.docker.com/compose/install/)\n\n### Get Started with Vessel\n\nFirst you need to create a Laravel project to start with by the following :\n\ncomposer create-project — prefer-dist laravel/laravel vessel\\_test\n\nNow and as I mention before Vessel is lightweight docker environment includes a Laravel service provider that makes easy and simple to start your own development setup. All you need to do in order to start your dev setup with vessel :\n\n_\\# Install Vessel into your project_ \ncomposer require shipping-docker/vessel\n\n_\\# Publish the \\`vessel\\` command and Docker files_ \nphp artisan vendor:publish — provider=”Vessel\\\\VesselServiceProvider”\n\n_\\# Run this once to initialize project_ \n_\\# Must run with “bash” until initialized_ \nbash vessel init\n\nThe first time you start up an application with Vessel using the init command, vessel will download the following official Docker images:\n\n* PHP 7.1\n* MySQL 5.7\n* Redis\n* NodeJS with NPM, Yarn, and Gulp\n\nStart vessel by running :\n\ncd vessel\\_test \n./vessel start\n\nHead to [http://localhost](http://localhost) in your browser and see your Laravel site!\n\nAnd at last, also Vessel has good documentation that covers everything you need to know to get started : [official documentation](https://vessel.shippingdocker.com/)\n\n### Bonus : Vessel Cheat Sheet\n\n!(https://hackernoon.com/hn-images/1*3qhl54NFza8nK70yl6KPaQ.png)\n\nThanks for reading! If you think other people should read this, clap for me, tweet and share the post. Remember to follow me on Medium so you can get notified about my future posts.\n\n> **_Read more stories_** [**_https://elazizi.com/_**](https://elazizi.com/)\n\n### P.P.S. if you liked this,give me at least dozen claps for good luck 👌👌.