Laravel Dotto is a very simple yet highly optimized docker setup for your Laravel application.
titasgailius/laravel-dotto is a Laravel package for laravel dotto is a very simple yet highly optimized docker setup for your laravel application..
It currently has 0 GitHub stars and 2 downloads on Packagist.
Install it with composer require titasgailius/laravel-dotto.
Discover more Laravel packages by titasgailius
or browse all Laravel packages to compare alternatives.
Last updated
Dotto is a very simple yet highly optimized Laravel development environment setup powered by Docker.
Install Dotto with composer:
composer require titasgailius/laravel-dotto --dev
Dotto automatically discovers, configures and starts the services required by your Laravel application.
php artisan dotto
You may interact with the application container on the command line:
php artisan dotto:enter
You may interact with your entire Laravel application on the command line:
php artisan dotto:tinker
You may watch your application logs:
php artisan dotto:logs
You may customize the Dotto setup by publishing the Dotto.yml configuration file.
php artisan dotto:publish
Dotto automatically detects your default database connection and starts the appropriate services. Of course, You may override what database connection(s) are used by your application.
databases:
- database-1
- database-2
:round_pushpin: By default, Dotto uses the database credentials defined in your config/database.php configuration file.
:round_pushpin: The host of a database is the same as connection name.
You may override what cache backend(s) are used in your application.
caches:
- redis
- memcached
Currently supported cache backends: redis, memchached.
You may override what queue backend(s) are used in your application.
queues:
- redis
- beanstalkd
Currently supported queue backends: redis, beabstalkd.
You may instruct Dotto to merge the existing docker-compose.yml and Dockerfile files by running Dotto with the --m option (or --merge).
php artisan dotto --m
Additionally, you may call the mergeDockerCompose or mergeDockerfile methods in your AppServiceProvider to
instruct Dotto to merge these files by default.
<?php
namespace App\Providers;
use TitasGailius\Dotto\Facades\Dotto;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
Dotto::mergeDockerfile();
Dotto::mergeDockerCompose();
}
}
Then, you may simply use your regular docker-compose.yml and Dockerfile files to add any new services or install additional PHP dependencies.
# dotto-compose.yml
version: '3'
services:
your-service-name:
image: "hello-world"
# Dockerfile
RUN docker-php-ext-install pcntl
...