Skip to content
A docker-compose structure for using a PHP application served by Nginx.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
application/public
services
storage/database
.env.example
.gitignore
LICENSE
README.md
docker-compose.yml

README.md

Nginx + PHP using Docker containers

A docker-compose structure for using a PHP application served by Nginx.

Requirements

Before use, you need:

Usage

Just run in terminal:

# clone the repository
git clone https://github.com/edersoares/nginx-php.git
cd nginx-php

# copy the .env file
cp .env.example .env

# execute the container
docker-compose up --build

And access http://localhost to see the PHP Version x.x.x installed.

Application

To use your PHP application, replace the code in application folder. By default, the application/public is the root path for the server.

Xdebug

Xdebug is configured to work in port 9000 and to send idekey xdebug, but you can change this configurations in ./services/php/php.ini file.

For more information about Xdebug see its website https://xdebug.org.

You can’t perform that action at this time.