Symfony Standard Edition with PHP-PM in a simple Docker image to avoid running Nginx
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
docker/app
src
tests/AppBundle/Controller
var
web
.gitignore
Dockerfile
README.md
build.sh
composer.json
composer.lock
phpunit.xml.dist
ppm.json
start.sh Split scripts to build and start Oct 22, 2017

README.md

PHP-PM Docker with Symfony example

This is an attempt to run PHP-PM in a Docker image. The aim is to enable running compatible PHP apps with high performance and no need for a separate web server (like Nginx or Apache). This would be inline with running Node.js or Golang apps in containers.

More information in this article: Running Symfony without a web server on Docker using PHP-PM

Installation

Make sure you've got Docker installed and working as expected.

Build the image (see Dockerfile for details):

$ docker build --tag=ppmtest .

This will take some time, but once you've got it running you can run it as follows:

$ docker run -p 8080:8080 ppmtest:latest