{"id":40948602,"url":"https://github.com/fbraz3/lamp-docker","last_synced_at":"2026-01-22T05:08:07.212Z","repository":{"id":292413263,"uuid":"980833733","full_name":"fbraz3/lamp-docker","owner":"fbraz3","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-12T01:26:30.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T02:32:34.241Z","etag":null,"topics":["docker","docker-image","phalcon","phalcon-php","php","symfony","symfony-console","tooling","tools","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbraz3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md ","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"fbraz3","patreon":"fbraz3"}},"created_at":"2025-05-09T19:48:57.000Z","updated_at":"2025-05-14T20:18:13.000Z","dependencies_parsed_at":"2025-05-09T20:44:30.209Z","dependency_job_id":"ced6c096-4195-423c-9e36-3e5c2fd21c4e","html_url":"https://github.com/fbraz3/lamp-docker","commit_stats":null,"previous_names":["fbraz3/lamp-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fbraz3/lamp-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbraz3%2Flamp-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbraz3%2Flamp-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbraz3%2Flamp-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbraz3%2Flamp-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbraz3","download_url":"https://codeload.github.com/fbraz3/lamp-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbraz3%2Flamp-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28655198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","phalcon","phalcon-php","php","symfony","symfony-console","tooling","tools","wordpress"],"created_at":"2026-01-22T05:08:06.503Z","updated_at":"2026-01-22T05:08:07.207Z","avatar_url":"https://github.com/fbraz3.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/fbraz3","https://patreon.com/fbraz3","https://www.patreon.com/fbraz3"],"categories":[],"sub_categories":[],"readme":"[![Build Base Images](https://github.com/fbraz3/lamp-docker/actions/workflows/base-images.yml/badge.svg)](https://github.com/fbraz3/lamp-docker/actions/workflows/base-images.yml)\n[![Build Phalcon Images](https://github.com/fbraz3/lamp-docker/actions/workflows/phalcon-images.yml/badge.svg)](https://github.com/fbraz3/lamp-docker/actions/workflows/phalcon-images.yml)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/fbraz3/lamp-docker)\n\n# Braz LAMP Docker Image\n\nThis repository provides Docker images for LAMP stack (`L`inux, `A`pache, `M`ariaDB, and `P`HP-FPM).\n\nIt is designed to simplify the deployment of PHP applications with a robust and modern environment, offering both **Development** and **Production** versions to meet different deployment needs.\n\nThe images are built on top of other modular images from the `fbraz3` ecosystem, ensuring flexibility, maintainability, and ease of use.\n\nWe also provide an AI generated [DeepWiki Page](https://deepwiki.com/fbraz3/lamp-docker) with more technical information.\n\n💡 For a complete list of available images, please visit the [PHP System Docs](https://github.com/fbraz3/php-system-docs) page.\n\n## Table of Contents\n\n- [Braz LAMP Docker Image](#braz-lamp-docker-image)\n  - [Image Versions](#image-versions)\n  - [Tags](#tags)\n  - [Flavors](#flavors)\n  - [How to Use](#how-to-use)\n    - [Development Version](#development-version)\n    - [Production Version](#production-version)\n  - [Custom SQL Scripts](#custom-sql-scripts)\n  - [Security Considerations](#security-considerations)\n  - [Environment Variables](#environment-variables)\n  - [Manage PHP Directives via Environment Variables](#manage-php-directives-via-environment-variables)\n  - [Cronjobs](#cronjobs)\n  - [Sending Mails](#sending-mails)\n  - [Contribution](#contribution)\n  - [Donation](#donation)\n  - [License](#license)\n\n## Image Versions\n\nThis project provides two distinct versions for different use cases:\n\n### Development Version (`-dev` suffix)\n- **Purpose**: Designed for local development and testing\n- **Features**:\n  - MariaDB with **no root password** (empty password)\n  - phpMyAdmin accessible at `/pma/` endpoint\n  - Relaxed security settings for ease of development\n  - Direct database access without authentication\n\n### Production Version (no suffix)\n- **Purpose**: Optimized for production environments\n- **Features**:\n  - MariaDB with **mandatory root password** configuration\n  - **Enforced password security**: Container will fail to start if using default password\n  - **Custom SQL scripts support**: Execute custom SQL files at startup\n  - **No phpMyAdmin** included for security\n  - Secure database configuration\n  - Root password configurable via environment variables\n  - Anonymous users and test databases removed\n  - Enhanced security settings\n\n## Tags\n\nThe image follows a consistent tagging scheme:\n\n### Base Images (Vanilla LAMP Stack)\n- **Production**: `fbraz3/lamp:{php_version}` (e.g., `8.2`, `8.3`, `8.4`)\n- **Development**: `fbraz3/lamp:{php_version}-dev` (e.g., `8.2-dev`, `8.3-dev`)\n\n### Phalcon Images (With Phalcon Framework)\n- **Production**: `fbraz3/lamp:{php_version}-phalcon` (e.g., `8.2-phalcon`, `8.3-phalcon`)\n- **Development**: `fbraz3/lamp:{php_version}-phalcon-dev` (e.g., `8.2-phalcon-dev`)\n\n### Latest Tags\n- `fbraz3/lamp:latest` - Latest production version\n- `fbraz3/lamp:latest-dev` - Latest development version  \n- `fbraz3/lamp:latest-phalcon` - Latest Phalcon production version\n- `fbraz3/lamp:latest-phalcon-dev` - Latest Phalcon development version\n\n### Architecture Support\n- All images support both `amd64` and `arm64` architectures\n- LAMP variants are also available as `fbraz3/lamp:{tag}`\n\n## Flavors\n\nThis image supports multiple flavors to cater to different use cases:\n\n- `Vanilla`: A standard LAMP stack with no additional frameworks.\n- `Phalcon`: Includes the Phalcon PHP framework pre-installed.\n\n## How to Use\n\n### Development Version\n\nPerfect for local development with easy database access and debugging tools.\n\n```yaml\n# docker-compose.yml\nservices:\n  web:\n    image: fbraz3/lamp:8.4-dev  # or fbraz3/lamp:8.4-phalcon-dev\n    volumes:\n      - ./:/app/public/\n    ports:\n      - \"127.0.0.1:80:80\"\n```\n\nThe development version includes:\n- **phpMyAdmin** accessible at `http://localhost/pma/`\n- **MariaDB** with no root password (empty password)\n- Direct database access for development\n\n### Production Version\n\nOptimized for production environments with enhanced security.\n\n```yaml\n# docker-compose.yml\nservices:\n  web:\n    image: fbraz3/lamp:8.4  # or fbraz3/lamp:8.4-phalcon\n    volumes:\n      - ./:/app/public/\n      - ./sql-scripts:/sql-scripts  # Optional: Custom SQL scripts\n    ports:\n      - \"127.0.0.1:80:80\"\n    environment:\n      - MYSQL_ROOT_PASSWORD=your_secure_password_here\n      - MYSQL_DATABASE=your_app_db\n      - MYSQL_USER=app_user\n      - MYSQL_PASSWORD=app_user_password\n```\n\nRun the following command to start the container:\n\n```bash\ndocker-compose up -d\n```\n\nYour application will be accessible at `http://localhost/`.\n\n## Custom SQL Scripts\n\nThe production version of this image supports the execution of custom SQL scripts at startup. \n\nTo use this feature, place your SQL files in a directory (e.g., `./sql-scripts`) and mount it as a volume to the container:\n\n```yaml\nservices:\n  web:\n    image: fbraz3/lamp:8.4  # Production version\n    volumes:\n      - ./:/app/public/\n      - ./sql-scripts:/sql-scripts  # Custom SQL scripts directory\n    ports:\n      - \"127.0.0.1:80:80\"\n    environment:\n      - MYSQL_ROOT_PASSWORD=your_secure_password_here\n```\n\nSQL scripts in the mounted directory will be executed in alphabetical order during container startup.\n\n## Security Considerations\n\n- **Development Version**: This version has relaxed security settings for ease of development. It is not recommended for production use.\n- **Production Version**: This version enforces strict security measures. Ensure that you configure the root password and remove any default or test databases.\n\n## Environment Variables\n\nYou can configure various aspects of the container using environment variables. \n\nCommonly used variables include:\n\n- `MYSQL_ROOT_PASSWORD`: Set the root password for MariaDB.\n- `MYSQL_DATABASE`: Create a default database.\n- `MYSQL_USER` and `MYSQL_PASSWORD`: Create a new user with access to the default database.\n\nRefer to the [official MariaDB Docker image documentation](https://hub.docker.com/_/mariadb) for a complete list of environment variables.\n\n## Manage PHP Directives via Environment Variables\nThis image allows you to customize PHP directives using environment variables. \n\nFor detailed instructions, refer to the [php-fpm-docker documentation](https://github.com/fbraz3/php-fpm-docker#manage-php-directives-via-environment-variables).\n\n## Cronjobs\nCronjobs can be configured by binding a file to `/cronfile` in the container. The system will automatically install and execute the jobs.\n\nFor more details, see the [php-fpm-docker documentation](https://github.com/fbraz3/php-fpm-docker#cronjobs).\n\n## Sending Mails\nTo enable email sending, this image relies on the configuration provided in the `php-base-docker` project.\n\nFollow the instructions in the [php-base-docker documentation](https://github.com/fbraz3/php-base-docker#sending-mails) to set up email functionality.\n\n## Contribution\nContributions are welcome! Feel free to open issues or submit pull requests to improve the project.\n\nPlease visit the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines on how to contribute to this project.\n\n#### Useful links\n- [How to create a pull request](https://docs.github.com/pt/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)\n- [How to report an issue](https://docs.github.com/pt/issues/tracking-your-work-with-issues/creating-an-issue)\n\n## Donation\nI spend a lot of time and effort maintaining this project. If you find it useful, consider supporting me with a donation:\n- [GitHub Sponsor](https://github.com/sponsors/fbraz3)\n- [Patreon](https://www.patreon.com/fbraz3)\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE), 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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbraz3%2Flamp-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbraz3%2Flamp-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbraz3%2Flamp-docker/lists"}