Build a simple laravel application development environment with docker-compose.
- Docker ^19.*
app
used image:web
used image: nginx:stable-alpinedb
used image: mysql:8.0phpmyadmin
used image: phpmyadmin:latestredis
used image: redis:latest (Optional)rabbitmq
used image: rabbitmq:latest (Optional)
- click Use this template
- git clone & change directory
- execute the following command
$ make create-project # Install the latest Laravel project
- set src/.env variable :
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=admin
DB_PASSWORD=admin
- Done! Let's to try to access the services in your browser
- Laravel App: http://localhost:8110
- phpMyAdmin: http://localhost:81012
Hi everyone!
We're excited to announce our new open-source project: Laravel + Docker Template. This template aims to make it easy to set up a Laravel application with full Docker support.
- Easy Setup: Get your Laravel app running with just a few steps.
- Organized Structure: Follow best practices to keep your code clean.
- Community Support: Join a dedicated community to share knowledge and help each other.
We need contributions in code, documentation, testing, and ideas. Interested? Check out our repository: https://github.com/agungprsty/laravel-with-docker.
Thank you for your support!
Best, Prasetyo Agung