Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/victormln/docker-php-nginx-psql-testing

Docker with PHP-fpm + Nginx + PostgreSQL + Xdebug + Testing Tools (PHPUnit + Infection)
https://github.com/victormln/docker-php-nginx-psql-testing

docker docker-compose nginx php phpunit postgresql psql

Last synced: about 1 month ago
JSON representation

Docker with PHP-fpm + Nginx + PostgreSQL + Xdebug + Testing Tools (PHPUnit + Infection)

Awesome Lists containing this project

README

        

![PHP Version](https://img.shields.io/packagist/php-v/victormln/docker-php-nginx-psql-testing)

# Introduction

Template repository to have PHP + nginx + PostgresSQL + testing available through a local URL: http://web-server.test

## What is in this template

- PHP-fpm
- php.ini prepared to be edited by your own
- Composer
- Makefile
- Xdebug
- PostgresSQL
- PHPUnit
- Infection
- Nginx

## Installation

1. From composer

```shell
$ composer create-project victormln/docker-php-nginx-psql-testing your-project
```

OR with git:

```shell
$ git clone https://github.com/victormln/docker-php-nginx-psql-testing.git your-project
$ cd your-project
$ make install # It will ask you for your sudo password in order to add to your /etc/hosts the domain
```

2. Start web server:

```shell
$ make start
```

Test website: `https://web-server.test` (you will see all `phpinfo()`)

Now you can edit the file in `public/index.php` and start coding!