lamp

fbraz3/lamp Docker Image

一个易于使用的LAMP镜像,包含Ubuntu Linux、Apache2、MySQL、PHP-FPM和PHPMyAdmin。

1 次收藏下载次数: 0状态:社区镜像维护者:fbraz3仓库类型:镜像最近更新:
下载命令
点击查看

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 both amd64 and arm64 architectures.
  • Latest Tag: The latest tag 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:

yaml
services:
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:

bash
docker-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.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 lamp 镜像标签

docker pull docker.xuanyuan.run/fbraz3/lamp:<标签>

DockerHub 原生拉取命令

docker pull fbraz3/lamp:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告