Project with Docker Compose - Building LAMP infrastructure
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:
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:
Edit the .env
file to configure:
MYSQL_ROOT_PASSWORD=your_root_password
MYSQL_DATABASE=your_database
MYSQL_USER=your_user
MYSQL_PASSWORD=your_password
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
For more detailed information, check out:
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This project is licensed under the MIT License - see the LICENSE file for details.
Jerson MartΓnez
If you find this project helpful, please give it a star on GitHub and share it with others!