A comprehensive guide to setting up a robust Laravel development environment using Docker and Docker Compose, featuring multiple services and best practices for containerization.
More information at - https://medium.com/@murilolivorato/setting-up-a-laravel-development-environment-with-docker-and-docker-compose-a-step-by-step-5e37670ae640
This project demonstrates how to set up a complete Laravel development environment using Docker, including:
- PHP 8.2 with FPM
- Nginx web server
- MySQL 8.0 database
- Mailhog for email testing
- PhpMyAdmin for database management
- Docker Compose for service orchestration
- Containerized Laravel development environment
- Multiple service integration
- Email testing capabilities
- Database management interface
- Easy service scaling
- Environment isolation
- Development and production configurations
- Hot-reloading support
- Docker Engine
- Docker Compose
- Git
- Basic understanding of Laravel
- Basic understanding of Docker concepts
- Administrative privileges on your system
- Compatible operating system (Linux, macOS, or Windows)
- Administrative privileges
- Internet connection
- Minimum 4GB RAM (8GB recommended)
- 20GB free disk space
- Download Docker Desktop from Docker's official website
- Run the installer
- Enable Hyper-V when prompted
- Follow the installation wizard
- Restart your computer
- Download Docker Desktop for Mac
- Drag Docker to your Applications folder
- Open Docker from Applications
- Follow the setup wizard
- docker-compose up -d --build
- docker-compose run --rm composer install
- docker-compose run --rm artisan key:generate
For questions, suggestions, or collaboration:
- Author: Murilo Livorato
- GitHub: murilolivorato
- linkedIn: https://www.linkedin.com/in/murilo-livorato-80985a4a/
- FastAPI documentation
- React documentation
- Kubernetes documentation
- Docker documentation
- Open source community