x3tech / laravel-shipper
Integrate Docker into your Laravel development workflow
Installs: 19 687
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
- illuminate/support: ~4.0 | ~5.0
- symfony/process: ~2.3
- symfony/yaml: ~2.3
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.3
This package is not auto-updated.
Last update: 2022-02-01 12:40:50 UTC
README
Integrating Laravel, Docker and Docker-Compose
Requirements
Instructions
-
Add to
composer.json
composer require 'x3tech/laravel-shipper' '>=0.5'
-
Add the provider to
config/app.php
'providers' => array( ... 'x3tech\LaravelShipper\Provider\ShipperProvider' );
-
If using MySQL, set host to
db
indatabase.php
-
If using beanstalkd, set host to
queue
inqueue.php
-
Generate the
docker-compose.yml
config file./artisan shipper:create:all
-
Build and start the containers
docker-compose build && docker-compose up
-
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