Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 2.18 KB

README.md

File metadata and controls

62 lines (51 loc) · 2.18 KB

LAMP

A LAMP stack development environment runs on a single container. Given you a fast starting point with no installation cost.

Warning

It is a all-in-one image and target on development usage. It does not suppose to use in production. Be caution, many settings still keep in default, use in production may be in high risk.

Components ✅

Name Version Remark
Ubuntu 20.04.3 LTS The base image
Apache 2.4.41 mod_fcgid/2.3.9
OpenSSL/1.1.1f
MPM Name: event
MySQL 8.0.26
PHP 8.0.10 PHP-FPM
Composer 2.1.8 A Dependency Manager for PHP

Links and Ports ‼️

Link / Port Remark
https://127.0.0.1/server-status Apache server status
https://127.0.0.1/server-info Apache server info.
https://127.0.0.1/fpm-status PHP server status
https://127.0.0.1 Web document root
https://127.0.0.1/phpinfo.php PHP installation detail
/home/www Volume - suppose you mount this point to your local directory
80, 443 Http port, with SSL
3306 MySQL classic port. Default user (root/root)
33060 MySQL port for X Protocol

How to ❓

Before running..

Please refer to the folder structure (https://github.com/ssmak/lamp/tree/master/container_volume/www) which is aligned and mounted to the container path /home/www. Don't forget to copy the SSL certificatas for https. Finally, there are 3 folders in the /www/default directory.

  • /www/default/html
  • /www/default/ssl
  • /www/default/logs

After the folder structure was created..

Using Docker run
docker run --name lamp -d -v d:/my_projects/lamp/container_volume/www:/home/www -p 80:80 -p 443:443 -p 3306:3306 -p 33060:33060 ssmak/lamp:0.0.1

OR

Using Docker Compose
docker-compose up -d

For Windows user Please don't forget to add the local directory path to Docker, so it can write.

❤️ That's all. Enjoy! ❤️

Buy me a ☕?

If you feel it is helpful 👍, please consider to buy me a ☕!
ko-fi

Thank you so much! 👊