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 docker
docker compose up
Use the -d
flag to start in detached mode, e.g. without logging the container outputs.
docker compose down
This stack links these folders inside this directory:
/volumes/www
will be linked to the php-apache apps web folder. Put your HTML and PHP files in here./volumes/database
will be linked to the MariaDBs database folder and contain all thosedb.opt
files, 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