一个易于使用的LAMP镜像,包含Ubuntu Linux、Apache2、MySQL、PHP-FPM和PHPMyAdmin。
Braz LAMP Docker Image
This repository provides a Docker image for an LAMP stack (Linux, Apache, MySQL, and PHP-FPM).
It is designed to simplify the deployment of PHP applications with a robust and modern environment.
The image is built on top of other modular images from the fbraz3 ecosystem, ensuring flexibility, maintainability, and ease of use.
We also provide an AI generated DeepWiki Page with more technical information.
💡 For a complete list of available images, please visit the https://github.com/fbraz3/php-system-docs page.
Table of Contents
- Braz LAMP Docker Image
- Build Status
- Tags
- Flavors
- How to Use
- Manage PHP Directives via Environment Variables
- Cronjobs
- Sending Mails
- Contribution
-
- License
Build Status
Tags
The image follows a consistent tagging scheme:
PHP Version Tags: Each tag corresponds to a specific PHP version (e.g.,8.2,8.3).Flavors: Tags may include additional flavor identifiers (e.g.,-phalcon).Multi-Arch Support: Images are available for bothamd64andarm64architectures.Latest Tag: Thelatesttag always points to the most recent stable PHP version.
Flavors
This image supports multiple flavors to cater to different use cases:
Vanilla: A standard LAMP stack with no additional frameworks.Phalcon: Includes the Phalcon PHP framework pre-installed.
How to Use
To use this image, create a docker-compose.yml file in your application root directory:
yamlservices: web: image: fbraz3/lamp-docker volumes: - ./:/app/public/ ports: - "127.0.0.1:80:80" - "127.0.0.1:3306:3306"
Run the following command to start the container:
bashdocker-compose up -d
Your application will be accessible at http://localhost/, and phpMyAdmin will be available at http://localhost/pma/.
Manage PHP Directives via Environment Variables
This image allows you to customize PHP directives using environment variables.
For detailed instructions, refer to the https://github.com/fbraz3/php-fpm-docker#manage-php-directives-via-environment-variables.
Cronjobs
Cronjobs can be configured by binding a file to /cronfile in the container. The system will automatically install and execute the jobs.
For more details, see the https://github.com/fbraz3/php-fpm-docker#cronjobs.
Sending Mails
To enable email sending, this image relies on the configuration provided in the php-base-docker project.
Follow the instructions in the https://github.com/fbraz3/php-base-docker#sending-mails to set up email functionality.
Contribution
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.
Please visit the CONTRIBUTING.md file for guidelines on how to contribute to this project.
Useful links
- https://docs.github.com/pt/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
- https://docs.github.com/pt/issues/tracking-your-work-with-issues/creating-an-issue
***
I spend a lot of time and effort maintaining this project. If you find it useful, *** supporting me with a ***:
- https://github.com/***/fbraz3
- Patreon
License
This project is licensed under the Apache License 2.0, so you can use it for personal and commercial projects. However, please note that the images are provided "as is" without any warranty or guarantee of any kind. Use them at your own risk.
fbraz3 命名空间的其他可用镜像:
更多相关 Docker 镜像与资源
以下是 fbraz3/lamp 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务