pkeidel / laradockctl
Allows to manage docker container for the development over cli - with help of the amazing laradock project
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pkeidel/laradockctl
Requires
- php: ^8.1
- ext-curl: *
- ext-yaml: *
- jfcherng/php-diff: *
- laravel/framework: ^9.0|^10.0
README
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.
Install
composer require pkeidel/laradockctl --dev
Usage
- laradock:install
- laradock:configure
- laradock:up
Commands
There are the following artisan commands:
- laradock:installInstalls laradock from github. If git is found it uses git else it downloads it as zip file
- laradock:configureEnables the specified services and write the needed configuration to ./.env and laradock/.env
- laradock:upStarts all your containers- laradock:up --only="php-fpm nginx"
 
- laradock:execExecutes 'bash' in 'php-fpm' container- laradock:exec nginxExecutes 'bash' in 'nginx' container
- laradock:exec nginx --cmd=shExecutes 'sh' in 'nginx' container
 
- laradock:logstail -f log output for all your containers
- laradock:updateUpdates laradock. Either via git or via zip download
There are also these commands but you may not need them for normal usage:
- laradock:setenvSets the value of a specified key in laradock/.env