sarvar-lapasov / laravel-docker-starter-kit
The skeleton application for the Laravel framework.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^10.10
- laravel/sanctum: ^3.3
- laravel/tinker: ^2.8
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.18
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^7.0
- phpunit/phpunit: ^10.1
- spatie/laravel-ignition: ^2.0
This package is auto-updated.
Last update: 2025-07-04 12:43:23 UTC
README
Laravel Docker Starter Kit
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Kit has 3 docker containers: php, nginx and mysql
Installation
Download the project
composer create-project sarvar-lapasov/laravel-docker-starter-kit --ignore-platform-reqs --no-scripts --stability=dev
Go to the project directory
cd laravel-docker-starter-kit
Copy .env from .env.example
cp .env.example .env
Run docker containers
docker compose up -d
Install composer scripts:
docker compose exec php composer install
Generate app key:
docker compose exec php php artisan key:generate
Running migrations:
docker compose exec php php artisan migrate
Done! You can open http://localhost:8000 via browser.
By the way, you can change this port by changing DOCKER_NGINX_PORT
variable in .env file.
If you receive an error message (Permission denied)
docker compose exec php bash
chown -R www-data:www-data storage/ bootstrap/cache/
Docker
For enter to php container run
docker compose exec php bash
For enter to mysql container run
docker compose exec mysql bash
For enter to nginx container run
docker compose exec nginx bash
You can change containers prefix by changing DOCKER_PROJECT_NAME
variable in .env file.
Also, you can change public ports of nginx and mysql by changing DOCKER_NGINX_PORT
and DOCKER_DATABASE_PORT
Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
License
The Laravel framework is open-sourced software licensed under the MIT license.