A lightweight and high-performance Laravel development environment using PHP 8.4-FPM (Alpine), PostgreSQL, and Nginx. This setup utilizes a multi-stage Docker build for a smaller, cleaner, and more efficient container image.
- Docker Engine
- Docker Compose
- Git clone & move to working directory
- Settings your credentials, copy
.env.exampleto.env - Execute the following command for create application
$ make create-project- Next, set environment DB for app laravel in
src/.envvariable :
DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=<your_db_name> // same in root .env variable POSTGRES_DB
DB_USERNAME=<your_db_user> // same in root .env variable POSTGRES_USER
DB_PASSWORD=<your_db_password> // same in root .env variable POSTGRES_PASSWORD
- show application in http://localhost:85
- show adminer in http://localhost:8080
- show pgadmin in http://localhost:5050
- list execute command in Makefile.
- Laravel App: http://localhost:8000
- Vite (HMR): http://localhost:5173
- PostgreSQL: localhost:5432
- Adminer: http://localhost:8080
- PgAdmin: http://localhost:5050
- App: PHP 8.4-FPM Alpine (Multi-stage build).
- Web: Nginx Alpine.
- DB: PostgreSQL 15.
- Adminer/PgAdmin: Database management tools.
Contributions are welcome! Please follow these steps:
- Fork this repository.
- Create a new feature branch (
git checkout -b feature/amazing-feature). - Commit your changes.
- Push to the branch.
- Open a Pull Request.
If you encounter any bugs or have questions regarding the setup:
- Please check the existing issues first.
- If you don't find a solution, feel free to open a new issue. Please include your docker-compose.yml configuration and the error logs to help us debug faster.



