Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/victormln/docker-php-nginx-psql-testing
- Owner: victormln
- Created: 2022-06-18T09:26:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T20:02:55.000Z (9 months ago)
- Last Synced: 2024-11-15T08:40:46.506Z (2 months ago)
- Topics: docker, docker-compose, nginx, php, phpunit, postgresql, psql
- Language: Dockerfile
- Homepage:
- Size: 2.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!