Repository files navigation
Laravel Docker Starter Kit
Laravel v12.x
PHP v8.4.x
MySQL v8.1.x (default)
MariaDB v10.11.x
PostgreSQL v16.x
pgAdmin v4.x
phpMyAdmin v5.x
Mailpit v1.x
Node.js v18.x
NPM v10.x
Yarn v1.x
Vite v5.x
Rector v1.x
Redis v7.2.x
git clone https://github.com/refactorian/laravel-docker.git
cd laravel-docker
docker compose up -d --build
docker compose exec php bash
composer setup
From the second time onwards
Basic docker compose commands
Build or rebuild services
Create and start containers
Stop and remove containers, networks
Stop all services
Restart service containers
Run a command inside a container
docker compose exec [container] [command]
Display basic information about your application
Remove the configuration cache file
Flush the application cache
Clear all cached events and listeners
Delete all of the jobs from the specified queue
Remove the route cache file
Clear all compiled view files
Remove the compiled class file
php artisan clear-compiled
Remove the cached bootstrap files
php artisan optimize:clear
Delete the cached mutex files created by scheduler
php artisan schedule:clear-cache
Flush expired password reset tokens
php artisan auth:clear-resets
Laravel Pint (Code Style Fixer | PHP-CS-Fixer)
Format all files
Format specific files or directories
vendor/bin/pint app/Models
vendor/bin/pint app/Models/User.php
Format all files with preview
Format uncommitted changes according to Git
Inspect all files
Dry Run
vendor/bin/rector process --dry-run
Process
vendor/bin/rector process
About
Laravel Docker Template - Laravel v12.x, PHP v8.4.x, MySQL v8.1.x, phpMyAdmin v5.x, Mailpit v1.x
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.