Download the PHP package m1n64/laravel-12-docker-startup without Composer
On this page you can find all versions of the php package m1n64/laravel-12-docker-startup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-12-docker-startup
๐ Laravel 12 Docker Startup
This is a Docker-based template for Laravel 12, built with:
- PHP 8.4 (FPM on Alpine)
- PostgreSQL 16
- Redis (Alpine)
- Node.js 22 + NPM
- Supervisor for Queue & Scheduler
- Makefile for easy commands (like Laravel Sail)
- Nginx
- Composer
- XDebug in Dev Mode
And useful libraries:
๐ Setup Instructions
1๏ธโฃ Clone the Repository
2๏ธโฃ Copy .env
and Update Configuration
-
Open
.env
file and change it: -
Change the container name prefix:
Inside
docker-compose.yml
, renamel12-
to your project name: -
Change the Docker network
In
docker-compose.yml
:
๐ Start Containers
๐น Using Docker
๐น Using Makefile
๐ฆ Install Dependencies
๐ Install PHP Dependencies
Run inside the container:
Or using Makefile:
๐ธ Install Node.js & NPM Dependencies
๐ Generate App Key
๐ Run Migrations
๐ Create Storage Symlink
๐ป Available Commands
๐ Running Laravel Commands
Action | Docker Command | Makefile Shortcut |
---|---|---|
Run php artisan |
docker-compose exec -u www-data app php artisan <cmd> |
make artisan <cmd> |
Run composer |
docker-compose exec -u www-data app composer <cmd> |
make composer <cmd> |
Run npm |
docker-compose exec -u www-data app npm <cmd> |
make npm <cmd> |
Open Bash | docker-compose exec -u www-data app bash |
make bash |
View Logs | docker-compose logs -f app |
make logs app |
Open PostgreSQL CLI | docker-compose exec -e PGPASSWORD=<pass> postgres psql -U <user> -d <db> |
make psql |
Open Redis CLI | docker-compose exec redis redis-cli |
make redis |
Run Tests | docker-compose exec -u www-data app php artisan test |
make test |
๐ Managing Containers
๐ Restart & Stop
Action | Docker Command | Makefile Shortcut |
---|---|---|
Restart all | docker-compose restart |
make restart |
Restart one | docker-compose restart <service> |
make restart-container CONTAINER=<name> |
Stop all | docker-compose stop |
make stop |
Stop one | docker-compose stop <service> |
make stop-container CONTAINER=<name> |
Start all | docker-compose up -d |
make up |
Remove all | docker-compose down -v |
make down |
For list of all makefile commands, run make help
.
๐ก PHPStorm Setup
PHP Interpreter
or
If you use Laravel IDEA
XDebug
๐งช Run Tests
or,
๐ Additional Notes
- This setup supports Laravel Queues & Scheduler via Supervisor.
- PostgreSQL, Redis & Supervisor are configured out of the box.
- Uses Node.js 22 for Vite & frontend dependencies.
- All Docker volumes persist data between container restarts.
๐ฅ Now your Laravel 12 project is fully containerized!
Use Makefile commands just like Laravel Sail, and enjoy seamless Docker development! ๐
๐ค Authors
All versions of laravel-12-docker-startup with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
dedoc/scramble Version ^0.12.10
laravel/framework Version ^12.0
laravel/horizon Version ^5.30
laravel/sanctum Version ^4.0
laravel/telescope Version ^5.5
laravel/tinker Version ^2.10.1
opcodesio/log-viewer Version ^3.15
dedoc/scramble Version ^0.12.10
laravel/framework Version ^12.0
laravel/horizon Version ^5.30
laravel/sanctum Version ^4.0
laravel/telescope Version ^5.5
laravel/tinker Version ^2.10.1
opcodesio/log-viewer Version ^3.15
The package m1n64/laravel-12-docker-startup contains the following files
Loading the files please wait ....