Skip to content
tomsik68Public

About

Linux,Apache,MariaDB,PHP image for Developers

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tomsik68/lamp

Build Docker Hub pulls Image size License: MIT

Apache, PHP and MariaDB, with Adminer, in one container. Start it with one docker run, with no compose file needed.

This is a development image. It is the successor to tomsik68/xampp. Coming from there? Read the migration guide.

Quick start

docker run -d --name lamp \
  -p 80:80 -p 3306:3306 \
  -v "$PWD":/var/www/html \
  -v lamp-db:/var/lib/mysql \
  tomsik68/lamp

Warning

The default MariaDB login is root / root, and root can connect from outside the container. That's convenient on your laptop, but don't publish port 3306 on a network you don't trust. To choose a different password, set -e MARIADB_ROOT_PASSWORD=… on the first start. See configuration.

What's inside

  • The official php:X.Y-apache image on Debian trixie, with mod_rewrite and AllowOverride All.
  • MariaDB 11.8 from Debian, and Adminer at /adminer (/phpmyadmin redirects there).
  • PHP extensions: mysqli, pdo_mysql, gd, intl, zip, bcmath, exif, opcache, imagick, soap, redis, memcached, plus xdebug (installed but off by default).
  • composer.
  • No SSH. Use docker exec -it lamp bash and docker cp.

Tags

Tag PHP Status
8.5, 8, latest, 8.5-trixie, 8.5.X 8.5 supported
8.4, 8.4-trixie, 8.4.X 8.4 supported
  • Only PHP branches that upstream still supports are built. When a branch reaches end of life, its tags stay on Docker Hub, frozen. They are marked unsupported here and never rebuilt.
  • Images are rebuilt automatically when the base image or a Debian package gets an update, so pulling 8.4 again picks up security fixes.
  • Images are published for linux/amd64 and linux/arm64, and are mirrored at ghcr.io/tomsik68/lamp.

Documentation

License

MIT

About

Linux,Apache,MariaDB,PHP image for Developers

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

Contributors

Languages