https://github.com/janit/php-pm-docker-example
Symfony Standard Edition with PHP-PM in a simple Docker image to avoid running Nginx
https://github.com/janit/php-pm-docker-example
Last synced: 12 months ago
JSON representation
Symfony Standard Edition with PHP-PM in a simple Docker image to avoid running Nginx
- Host: GitHub
- URL: https://github.com/janit/php-pm-docker-example
- Owner: janit
- Created: 2017-10-20T19:38:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T10:24:14.000Z (almost 8 years ago)
- Last Synced: 2025-07-14T05:27:07.850Z (12 months ago)
- Language: PHP
- Homepage: https://symfony.fi/entry/running-symfony-without-a-web-server-on-docker-using-php-pm
- Size: 69.3 KB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP-PM Docker with Symfony example
===========
This is an attempt to run [PHP-PM](https://github.com/php-pm/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](https://symfony.fi/entry/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](./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
```