https://github.com/victormln/docker-php-nginx
Docker with PHP-fpm + XDebug + Nginx
https://github.com/victormln/docker-php-nginx
docker docker-compose nginx php
Last synced: 11 months ago
JSON representation
Docker with PHP-fpm + XDebug + Nginx
- Host: GitHub
- URL: https://github.com/victormln/docker-php-nginx
- Owner: victormln
- Created: 2022-05-21T23:28:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T20:02:39.000Z (over 1 year ago)
- Last Synced: 2025-01-13T03:31:40.937Z (12 months ago)
- Topics: docker, docker-compose, nginx, php
- Language: Dockerfile
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Introduction
Template repository to have PHP + nginx 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
- Nginx
## Installation
1. From composer
```shell
$ composer create-project victormln/docker-php-nginx your-project
# It will ask you for your sudo password in order to add to your /etc/hosts the domain
```
OR with git:
```shell
$ git clone https://github.com/victormln/docker-php-nginx.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!