Download the PHP package timo-de-winter/laravel-docker without Composer
On this page you can find all versions of the php package timo-de-winter/laravel-docker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timo-de-winter/laravel-docker
More information about timo-de-winter/laravel-docker
Files in timo-de-winter/laravel-docker
Package laravel-docker
Short Description A package that adds docker features to your project for local development
License MIT
Homepage https://github.com/timo-de-winter/laravel-docker
Informations about the package laravel-docker
Laravel Docker
A comprehensive Laravel package that provides a complete Docker-based development environment for Laravel projects. Inspired by Laravel Sail but with additional services and optimizations for modern Laravel development.
Note: This package contains features that I use across almost all my projects. For a more customizable experience, consider Laravel Sail. This package is ideal if you want a full-featured development environment out of the box.
Features
- 🐳 Complete Docker Environment - Pre-configured with all essential services
- 🚀 One-Command Setup - Get started with a single installation command
- 🔧 Laravel Sail Compatibility - Familiar commands and workflow
- 📦 Rich Service Stack - Database, cache, email testing, search, and storage
- 🛠 Development Tools - Xdebug, Laravel Horizon queue processing, and more
- 🤖 AI Tools Integration - Optional Claude Code + Laravel Boost MCP server
- 🎯 Optimized for Performance - PHP 8.4, Node 22, optimized configurations
Services Included
| Service | Purpose | Port | Admin Panel |
|---|---|---|---|
| Application | PHP 8.4 + Laravel | 80 | - |
| MariaDB | Database | 3306 | - |
| Redis | Cache & Sessions | 6379 | - |
| Mailpit | Email Testing | 1025 | http://localhost:8025 |
| MinIO | S3-compatible Storage | 9000 | http://localhost:8900 |
| Meilisearch | Full-text Search | 7700 | http://localhost:7700 |
Requirements
- Docker & Docker Compose
- PHP 8.3+ (for local Composer operations)
- Laravel 10, 11, or 12
Installation
1. Install the Package
2. Run the Installation Command
This interactive command will:
- Ask for your project name
- Ask which database service you want to use (MariaDB, MySQL, or PostgreSQL)
- Ask if you want to enable AI tools (Claude Code + Laravel Boost MCP server)
- Automatically install and configure Laravel Horizon for queue processing
- Publish Docker configuration files
- Create a custom binary script for your project
- Set up all necessary Docker services
3. Start Your Environment
After installation, start your development environment:
Your Laravel application will be available at http://localhost
Usage
Container Management
Laravel Development
Package Management
Code Quality
Database Operations
Development Tools
AI Tools Integration
If you chose to enable AI tools during setup, you get access to both Claude Code and Laravel Boost:
Laravel Boost MCP Server
Laravel Boost provides a Model Context Protocol (MCP) server with specialized Laravel tools:
Queue Management with Horizon
Laravel Horizon is automatically installed and configured during setup:
Debugging with Xdebug
Enable Xdebug for debugging sessions:
Configure your IDE to connect to localhost:9003 for Xdebug sessions.
Sharing Your Site
Expose your local development site using expose.dev:
Environment Configuration
The package respects standard Laravel environment variables and adds a few Docker-specific ones:
Docker Configuration
PHP Configuration
The container includes optimized PHP settings:
- Upload limits: 100M file uploads
- OPcache: Enabled for better performance
- Xdebug: Available for debugging (disabled by default)
- Extensions: All common Laravel extensions included
Container Stack
- Base Image: Ubuntu 24.04 LTS
- PHP: 8.4 with all Laravel extensions
- Node.js: v22 (latest LTS)
- Composer: Latest stable version
- Supervisor: For background queue processing
Volume Mounts
- Application code:
/var/www/html - Vendor packages: Cached for performance
- Node modules: Cached for performance
- Database data: Persisted in Docker volumes
Comparison with Laravel Sail
| Feature | Laravel Docker | Laravel Sail |
|---|---|---|
| Services | 6 pre-configured | Customizable selection |
| PHP Version | 8.4 | 8.1, 8.2, 8.3 |
| Node Version | 22 | 18, 20 |
| Queue Processing | Horizon (auto-start) | Manual setup |
| Search | Meilisearch included | Optional |
| Storage | MinIO included | Optional |
| Email Testing | Mailpit included | Mailhog optional |
| Setup | One command | Requires publishing |
Troubleshooting
Common Issues
Port already in use:
Permission issues:
Services not starting:
Database connection issues:
Performance Tips
- Use Docker Desktop's WSL2 backend on Windows
- Allocate sufficient memory to Docker (4GB+ recommended)
Development
Package Development
If you want to contribute to this package:
License
This package is open-sourced software licensed under the MIT License.
Credits
- Timo de Winter - Package author and maintainer
- Laravel Sail - Inspiration and base functionality
Support
- 📧 Email: [email protected]
- 🐛 Issues: GitHub Issues
- 📖 Documentation: This README
Happy coding! 🚀
All versions of laravel-docker with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0