A repository containing the Docker files to build a LAMP stack for local development.
After startup, its accessible via http://localhost:5678.
Install the Docker Desktop Client, either via the offical installer, or a package manger of your choice, like Homebrew:
brew install --cask dockerdocker compose upUse the -d flag to start in detached mode, e.g. without logging the container outputs.
docker compose downThis stack links these folders inside this directory:
/volumes/wwwwill be linked to the php-apache apps web folder. Put your HTML and PHP files in here./volumes/databasewill be linked to the MariaDBs database folder and contain all thosedb.optfiles, so you can work with or backup them.
You can easily customize PHP and Apache settings, by editing /php/local.ini and/or /apache/http-vhosts.conf, before restarting this stack.
docker build -t php-apache -f images/php-apache.dockerfile .- php:8.0.8-apache (customized via
/images/php-apache.dockerfile) - mariadb:10.6.3