HUB
Sign inSign up
lamp logo

turnkeylinux/lamp

By turnkeylinux

•Updated 3 days ago

LAMP Stack - Web Stack (MySQL)

Image
1

2.5K

turnkeylinux/lamp repository overview

⁠TurnKey LAMP on Docker

Run Apache, MariaDB and PHP with Webmin and Adminer on Linux/amd64. The image includes automatic security updates and can connect to the TurnKey Hub for app email delivery, DNS and backup.

⁠Start LAMP

mkdir -p turnkey-lamp && cd turnkey-lamp
curl -fL -o compose.lamp.yaml https://github.com/turnkeylinux/buildtasks/releases/download/library-19.0.3-hotfix/turnkey-lamp-19.0.3-compose.yaml
docker compose -f compose.lamp.yaml pull
docker compose -f compose.lamp.yaml up -d
docker compose -f compose.lamp.yaml exec lamp turnkey console

Complete the console setup to set the server and database passwords. The Compose file uses turnkeylinux/lamp:19.0.3, binds its ports to localhost and keeps server data in Docker volumes. See the LAMP overview⁠ and Docker guide⁠ for more information.

Open the site at http://localhost:8081, Webmin at https://localhost:12324 using root and the server password, or Adminer at https://localhost:12325 using adminer and the database password. Your browser will ask you to accept the initial self-signed HTTPS certificate.

⁠Backup and migration

Connect the server to the Hub during setup and enable Hub backup, connecting an AWS account if needed. Then initialize and run a backup:

docker compose -f compose.lamp.yaml exec lamp tklbam-init
docker compose -f compose.lamp.yaml exec lamp tklbam-backup

Security updates install automatically. Check /var/lib/turnkey-docker/security-updates.json in the container if an update fails. To move to a new image, copy the Compose file, choose unused ports and a distinct project name, then restore the backup to the new server. Keep the original image and volume set until you verify the restored data.

The TKLBAM guide⁠ covers backup settings and restoration.

Tag summary

Content type

Image

Digest

Size

265.3 MB

Last updated

over 6 years ago

docker pull turnkeylinux/lamp