pkeidel / laradockctl
Allows to manage docker container for the development over cli - with help of the amazing laradock project
0.9.1
2023-02-18 18:59 UTC
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: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