A simple LAMP (Linux, Apache, MySQL/MariaDB, PHP) using Docker containers. The master branch has the latest supported versions. Select a different branch for older versions of PHP.
- Make sure you have installed Git. Then,
- for Linux install Docker Engine Server (not Docker Desktop) and see Post-installation steps to manage Docker as a non-root user.
- for macOS install Docker Desktop for Mac (macOS)
- for Windows install Docker Desktop for Windows
- Configure environment variables in Docker Compose
cp .env.sample .env
# For Unix-like machines (Linux and Mac)
id -u # If the result is different from 1000, replace the UID value in the .env file
id -g # If the result is different from 1000, replace the GID value in the .env file
- Build and run all containers
docker compose build
docker compose up -d
- Test
- Web -> http:https://localhost:4001
- Phpmyadmin -> http:https://localhost:4003 (username: root, password: pass123)
Enjoy!