Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ishtarstar/docker-compose-nginx-phpfpm-xdebug-mariadb
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.
https://github.com/ishtarstar/docker-compose-nginx-phpfpm-xdebug-mariadb
docker mariadb nginx php php83 redis
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ishtarstar/docker-compose-nginx-phpfpm-xdebug-mariadb
- Owner: IshtarStar
- Created: 2022-01-16T19:35:15.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T18:13:14.000Z (about 1 month ago)
- Last Synced: 2024-10-12T13:02:07.775Z (about 1 month ago)
- Topics: docker, mariadb, nginx, php, php83, redis
- Language: Dockerfile
- Homepage: https://marc.it/dockerize-application-with-nginx-and-php8/
- Size: 2.13 MB
- Stars: 40
- Watchers: 2
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker compose PHP 8.3.12, Xdebug 3.3.2, Nginx 1.27.2, Redis 7.4.0 and MariaDB 11.5.2
![docker](https://img.shields.io/badge/Docker-compose-brightgreen.svg)
![nginx](https://img.shields.io/badge/nginx-1.27.2-brightgreen.svg)
![php](https://img.shields.io/badge/PHP_FPM-8.3.12-brightgreen.svg)
![xdebug](https://img.shields.io/badge/Xdebug-3.3.2-brightgreen.svg)
![phpunit](https://img.shields.io/badge/PHPUnit-11.3.6-brightgreen.svg)
![redis](https://img.shields.io/badge/Redis-7.4.0-brightgreen.svg)
![mariadb](https://img.shields.io/badge/MariaDB-11.5.2-brightgreen.svg)# Goal of this project
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.
# Services
* 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)
* Uses [PHP 8.3.12](https://www.php.net) for better performance, lower CPU and memory usage
* And [composer the dependency manager for PHP](https://getcomposer.org) to start easy your project
* Built on the lightweight [nginx 1.27.2](https://nginx.org) webserver
* Debugging with [Xdebug 3.3.2](https://xdebug.org)
* Testing with [PHPUnit 11.3.6](https://phpunit.de) to ensure code quality and reliability
* [Redis 7.4.0](https://redis.io) as session storage, database, cache, streaming engine, and message broker
* Database storage with [MariaDB 11.5.2](https://mariadb.org)## Setup Instructions
1. **Clone the repository:**
```sh
git clone https://github.com/IshtarStar/docker-compose-nginx-phpfpm-xdebug-mariadb.git ./docker-skeleton
cd docker-skeleton
```2. **Build and start the Docker containers:**
```sh
docker compose up --build -d
```3. **Install Composer dependencies:**
```sh
docker compose exec -T php-fpm composer install
```4. **Run PHPUnit tests with code coverage:**
```sh
docker compose exec -T php-fpm ./vendor/bin/phpunit --coverage-text --testdox tests
```## Example PHPUnit Test
An example PHPUnit test is included in the `tests` directory.
See also:
[Blog-Post: Dockerize your PHP application with Nginx and PHP8 FPM](https://marc.it/dockerize-application-with-nginx-and-php8/)