x3tech/laravel-shipper

This package is abandoned and no longer maintained. No replacement package was suggested.

Integrate Docker into your Laravel development workflow

0.5.0 2015-06-12 00:00 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:40:50 UTC


README

Integrating Laravel, Docker and Docker-Compose

Requirements

Instructions

  1. Add to composer.json

    composer require 'x3tech/laravel-shipper' '>=0.5'
  2. Add the provider to config/app.php

    'providers' => array(
        ...
        'x3tech\LaravelShipper\Provider\ShipperProvider'
    );
  3. If using MySQL, set host to db in database.php

  4. If using beanstalkd, set host to queue in queue.php

  5. Generate the docker-compose.yml config file

    ./artisan shipper:create:all

  6. Build and start the containers

    docker-compose build && docker-compose up

  7. Wait until the containers are started, and visit http://localhost:8080

FAQ

How do I run a command on my project (Such as artisan)

docker-compose run --rm app <command>

Examples

Artisan:

docker-compose run --rm app ./artisan

PHPUnit:

docker-compose run --rm app vendor/bin/phpunit