{"id":15028650,"url":"https://github.com/ishtarstar/docker-compose-nginx-phpfpm-xdebug-mariadb","last_synced_at":"2025-05-11T10:27:17.049Z","repository":{"id":44890547,"uuid":"448654020","full_name":"IshtarStar/docker-compose-nginx-phpfpm-xdebug-mariadb","owner":"IshtarStar","description":"The primary goal of this project is to create a streamlined and efficient development environment using Docker Compose. This environment will consist of PHP-FPM, Xdebug, Nginx web server, and MariaDB, enabling developers to quickly and easily start working on their PHP projects.","archived":false,"fork":false,"pushed_at":"2025-04-09T05:36:02.000Z","size":2265,"stargazers_count":46,"open_issues_count":0,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T06:29:30.245Z","etag":null,"topics":["docker","mariadb","nginx","php","php83","redis"],"latest_commit_sha":null,"homepage":"https://marc.it/dockerize-application-with-nginx-and-php8/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IshtarStar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2022-01-16T19:35:15.000Z","updated_at":"2025-04-09T05:36:05.000Z","dependencies_parsed_at":"2023-12-26T16:47:05.452Z","dependency_job_id":"faf3e015-c65f-4e62-a47c-d4a9cb00cc37","html_url":"https://github.com/IshtarStar/docker-compose-nginx-phpfpm-xdebug-mariadb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshtarStar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshtarStar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshtarStar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IshtarStar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IshtarStar","download_url":"https://codeload.github.com/IshtarStar/docker-compose-nginx-phpfpm-xdebug-mariadb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253549642,"owners_count":21925979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","mariadb","nginx","php","php83","redis"],"created_at":"2024-09-24T20:08:49.274Z","updated_at":"2025-05-11T10:27:17.037Z","avatar_url":"https://github.com/IshtarStar.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker compose PHP 8.4.5, Xdebug 3.4.2, Nginx 1.27.4, Redis 7.4.2 and MariaDB 11.7.2\n\n![docker](https://img.shields.io/badge/Docker-compose-brightgreen.svg)\n![nginx](https://img.shields.io/badge/nginx-1.27.4-brightgreen.svg)\n![php](https://img.shields.io/badge/PHP_FPM-8.4.5-brightgreen.svg)\n![xdebug](https://img.shields.io/badge/Xdebug-3.4.2-brightgreen.svg)\n![phpunit](https://img.shields.io/badge/PHPUnit-11.4.3-brightgreen.svg)\n![redis](https://img.shields.io/badge/Redis-7.4.2-brightgreen.svg)\n![mariadb](https://img.shields.io/badge/MariaDB-11.7.2-brightgreen.svg)\n\n# Goal of this project\n\nThe primary goal of this project is to create a streamlined and efficient development environment using Docker Compose. This environment will consist of PHP-FPM, Xdebug, PHPUnit, Redis, Nginx web server, and MariaDB, enabling developers to quickly and easily start working on their PHP projects.\n\n# Services\n\n* Easy setup with [docker compose](https://docs.docker.com/compose/) and [Dockerfile](https://docs.docker.com/engine/reference/builder/) under usage from [Docker](https://www.docker.com)\n* Uses [PHP 8.4.5](https://www.php.net) for better performance, lower CPU and memory usage\n* And [composer the dependency manager for PHP](https://getcomposer.org) to start easy your project\n* Built on the lightweight [nginx 1.27.4](https://nginx.org) webserver\n* Debugging with [Xdebug 3.4.2](https://xdebug.org)\n* Testing with [PHPUnit 11.4.3](https://phpunit.de) to ensure code quality and reliability\n* [Redis 7.4.2](https://redis.io) as session storage, database, cache, streaming engine, and message broker\n* Database storage with [MariaDB 11.7.2](https://mariadb.org)\n\n## Setup Instructions\n\n1. **Clone the repository:**\n   ```sh\n   git clone https://github.com/IshtarStar/docker-compose-nginx-phpfpm-xdebug-mariadb.git ./docker-skeleton\n   cd docker-skeleton\n   ```\n\n2. **Build and start the Docker containers:**\n   ```sh\n   docker compose up --build -d\n   ```\n\n3. **Install Composer dependencies:**\n   ```sh\n   docker compose exec -T php-fpm composer install\n   ```\n\n4. **Run PHPUnit tests with code coverage:**\n   ```sh\n   docker compose exec -T php-fpm ./vendor/bin/phpunit --coverage-text --testdox tests\n   ```\n\n## Example PHPUnit Test\n\nAn example PHPUnit test is included in the `tests` directory.\n\nSee also:\n[Blog-Post: Dockerize your PHP application with Nginx and PHP8 FPM](https://marc.it/dockerize-application-with-nginx-and-php8/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishtarstar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishtarstar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishtarstar%2Fdocker-compose-nginx-phpfpm-xdebug-mariadb/lists"}