A modern and efficient LAMP stack (Linux, Apache, MySQL, PHP) development environment using Docker. Perfect for PHP development with a clean, easy-to-use interface and dark mode support.
| Light Mode | Dark Mode | 
|---|---|
|  |  | 
Watch the tutorial video to get started:
- Easy Setup: Get started with a single command
- Modern Interface: Clean UI with dark/light mode support
- Real-time Status: Monitor your services at a glance
- Database Management: Includes PHPMyAdmin for easy database administration
- Development Ready: Perfect for PHP projects with MySQL
- Customizable: Easy to modify environment variables and configurations
- 
Clone the repository: git clone https://github.com/jersonmartinez/docker-lamp.git cd docker-lamp
- 
Copy the environment file: cp .env.example .env 
- 
Start the containers: docker-compose up -d 
- 
Access the services: - Web Interface: http://localhost
- PHPMyAdmin: http://localhost:8080
 
Edit the .env file to configure:
MYSQL_ROOT_PASSWORD=your_root_password
MYSQL_DATABASE=your_database
MYSQL_USER=your_user
MYSQL_PASSWORD=your_password- PHP: 8.2
- MySQL: Latest
- Apache: 2.4
- PHPMyAdmin: Latest
docker-lamp/
βββ .env                 # Environment variables
βββ docker-compose.yml   # Docker services configuration
βββ www/                 # Web root directory
β   βββ index.php       # Main application file
β   βββ assets/         # CSS, JS, and other assets
β   βββ includes/       # PHP includes
βββ README.md           # This file
- 
Edit the Dockerfile:RUN docker-php-ext-install pdo pdo_mysql
- 
Rebuild the containers: docker-compose build docker-compose up -d 
- Access PHPMyAdmin at http://localhost:8080
- Default credentials:
- Server: db
- Username: root
- Password: (from .env file)
 
For more detailed information, check out:
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Jerson MartΓnez
- GitHub: @jersonmartinez
- YouTube: Watch Tutorial
If you find this project helpful, please give it a star on GitHub and share it with others!

