@@ -4,7 +4,7 @@ You can use [PHP-PM](https://github.com/php-pm/php-pm) using Docker. We provide
44
55## Images
66
7- - [ ` phppm/nginx ` ] ( https://hub.docker.com/r/phppm/nginx/ ) : Contains php-pm and uses NGiNX as static file serving
7+ - [ ` phppm/nginx ` ] ( https://hub.docker.com/r/phppm/nginx/ ) : Contains php-pm and uses NGiNX as static file serving
88- [ ` phppm/standalone ` ] ( https://hub.docker.com/r/phppm/standalone/ ) : Contains php-pm and uses php-pm's ability to serve static files (slower)
99- [ ` phppm/ppm ` ] ( https://hub.docker.com/r/phppm/ppm/ ) : Just the php-pm binary as entry point
1010
@@ -19,22 +19,22 @@ $ docker run -v `pwd`:/var/www/ phppm/ppm --help
1919$ docker run -v `pwd`:/var/www/ phppm/ppm config --help
2020
2121# with nginx as static file server
22- $ docker run -v `pwd`:/var/www -p 8080:80 phppm/nginx
22+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx
2323
2424# with php-pm as static file server (dev only)
25- $ docker run -v `pwd`:/var/www -p 8080:80 phppm/standalone
25+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/standalone
2626
2727# use `PPM_CONFIG` environment variable to choose a different ppm config file.
28- $ docker run -v `pwd`:/var/www -p 80:80 phppm/nginx -c ppm-prod.json
28+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx -c ppm-prod.json
2929
3030# enable file tracking, to automatically restart ppm when php source changed
31- $ docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --debug=1 --app-env=dev
31+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --debug=1 --app-env=dev
3232
3333# change static file directory. PPM_STATIC relative to mounted /var/www/.
34- $ docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --static-directory=web/
34+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --static-directory=web/
3535
3636# Use 16 threads/workers for PHP-PM.
37- $ docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --workers=16
37+ $ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --workers=16
3838```
3939
4040Docker compose
@@ -49,22 +49,22 @@ services:
4949 volumes:
5050 - ./symfony-app/:/var/www
5151 ports:
52- - "80:80 "
52+ - "80:8080 "
5353```
5454
5555### Configuration
5656
57- You should configure PPM via the ppm.json in the root directory, which is within the container mounted to
57+ You should configure PPM via the ppm.json in the root directory, which is within the container mounted to
5858` /var/www/ ` . Alternatively, you can overwrite each option using the regular cli arguments.
5959
6060```
6161# change the ppm.json within current directory
6262docker run -v `pwd`:/var/www phppm/ppm config --help
6363
6464# not persisting config changes
65- docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --help
66- docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --workers=1 --debug 1
67- docker run -v `pwd`:/var/www -p 80:80 phppm/nginx --c prod-ppm.json
65+ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --help
66+ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --workers=1 --debug 1
67+ docker run -v `pwd`:/var/www -p 80:8080 phppm/nginx --c prod-ppm.json
6868```
6969
7070## Build image with own tools/dependencies
@@ -79,7 +79,7 @@ FROM phppm/nginx:1.0
7979RUN apk --no-cache add git
8080RUN apk --no-cache add ca-certificates wget
8181
82- # whatever you need
82+ # whatever you need
8383```
8484
8585```
0 commit comments