No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Craft Kit - Laravel

This is the official craft kit for Laravel by Codemason.

$ mason craft laravel

Craft kits let you Dockerize your application with one command. They are an excellent way to ease into building Docker powered apps without having to learn the ins and outs of Docker.

Then with Codemason, you can deploy your app to a server in a matter of minutes!


This guide assumes you have:


You will need to ensure you update your environment variables to match what is provided in the docker-compose.yml file.


Craft your Laravel app with Docker

$ mason craft laravel

Add your Docker files to source control.

$ git add .
$ git commit -m "Docker"

Spin up your development environment with Docker (add the -d flag to the command to run in detached mode)

$ docker-compose up

That's all! You're now running your Laravel application with Docker!

Craft --with

You can even swap out the default services the Craft Kit uses by using the --with parameter.

$ mason craft laravel --with="php, postgres"
  • Default: php, mysql
  • Available: php, mysql, mariadb, mongodb, postgres, postgis


Deploying is just as easy with Codemason. For more detailed instructions, see our documentation.

Create an application on Codemason for your app

$ mason create --application laravel-app

Push your code to your Codemason Git remote to build it into a Docker image

$ git push codemason master 


$ mason deploy --to laravel-app