This package does the following things:
- download laradock
- detect which services are needed and configure them
At the moment it supports:
- Laravel
For laravel it also does:
- configure your database connection
- configure your redis connection
How it works:
ProjectReader
instances inspect your project and return what services are needed. Configs are adjusted to start these services via php artisan laradock:up
.
composer require pkeidel/laradockctl --dev
laradock:install
laradock:configure
laradock:up
There are the following artisan commands:
laradock:install
Installs laradock from github. If git is found it uses git else it downloads it as zip filelaradock:configure
Enables the specified services and write the needed configuration to ./.env and laradock/.envlaradock:up
Starts all your containerslaradock:up --only="php-fpm nginx"
laradock:exec
Executes 'bash' in 'php-fpm' containerlaradock:exec nginx
Executes 'bash' in 'nginx' containerlaradock:exec nginx --cmd=sh
Executes 'sh' in 'nginx' container
laradock:logs
tail -f log output for all your containerslaradock:update
Updates laradock. Either via git or via zip download
There are also these commands but you may not need them for normal usage:
laradock:setenv
Sets the value of a specified key in laradock/.env