A LAMP stack development environment runs on a single container. Given you a fast starting point with no installation cost.
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.
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 |
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 |
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
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
docker-compose up -d
For Windows user Please don't forget to add the local directory path to Docker, so it can write.
If you feel it is helpful 👍, please consider to buy me a ☕!
Thank you so much! 👊