A lightweight LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack using Docker. The master branch contains the latest supported versions of each component. To use older PHP versions, please check the respective branches.
Ensure that you have Git installed, then follow the steps below based on your operating system:
- Linux: Install the Docker Engine (not Docker Desktop) and follow the post-installation steps to manage Docker as a non-root user.
- macOS: Install Docker Desktop for Mac.
- Windows: Install Docker Desktop for Windows.
Copy the sample environment file and adjust the user and group IDs if necessary:
cp .env.sample .envFor Unix-like systems (Linux and macOS) run:
id -u # If the output is different from 1000, update the UID in the .env file.
id -g # If the output is different from 1000, update the GID in the .env file.To build and start the Docker containers, run:
docker compose build
docker compose up -d- Web server: http://localhost:4001
- phpMyAdmin: http://localhost:4003 (username: root, password: pass123)
Enjoy!