An open-source, production-ready containerized LAMP stack leveraging Docker Compose, Apache 2.4, PHP 8.3 FPM, and MariaDB for rapid Grav CMS and PHP web development.
Overview
Docker LAMP Grav (github.com/milkboyinchina/docker-lamp-grav) is a developer-centric containerized environment built to streamline building, deploying, and maintaining PHP applications and Grav CMS instances across Linux VPS, macOS, and Windows.

Key Features
- Docker Compose Orchestration: Modular container definitions with automated permission handling and zero-downtime restarts.
- PHP 8.3 FPM: Pre-loaded with OPcache,
gd,mbstring,zip,xml, andcurlextensions for optimal execution speed. - Apache 2.4 Integration: Custom VirtualHost rules pre-configured for Grav CMS URL rewrites and
mod_rewrite. - Traefik SSL Ready: Built-in Traefik v3 label integration for automated Let's Encrypt TLS certificates.
- Multi-Framework Adaptability: Drop-in compatible with WordPress, Laravel, Drupal, and Symfony.
Quick Start
# Clone the repository
git clone https://github.com/milkboyinchina/docker-lamp-grav.git
cd docker-lamp-grav
# Copy environment settings & launch containers
cp .env.example .env
docker compose up -d --build
Repository Link: github.com/milkboyinchina/docker-lamp-grav