22
33## nginx-php Dockerfile
44
5- This repository contains source code of [ rtucek/nginx-php] ( https://hub.docker.com/r/rtucek/nginx-php ) .
5+ This repository contains source code of
6+ [ rtucek/nginx-php] ( https://hub.docker.com/r/rtucek/nginx-php ) .
67
78## Content
89
@@ -11,14 +12,16 @@ Nginx and PHP are compiled in a specific version. Consult the
1112file for further version details. [ PHP Composer] ( https://getcomposer.org/ ) is
1213already installed and ready for use.
1314
14- Xdebug is installed as shared extension, but not activated. Start the container with env
15- ENABLE_XDEBUG=1 to enable the extension.
15+ Xdebug is installed as shared extension, but not activated. Start the container
16+ with env ENABLE_XDEBUG=1 to enable the extension.
1617
17- The Nginx and PHP-FPM master processes are controlled by [ Honcho] ( https://github.com/nickstenning/honcho ) .
18- Honcho was chosen over Supervisor, because honcho will exit and kill the container if either Nginx
19- or PHP's master process dye for any reason. If you want have to have the container restarted
20- automatically, you may want to use
21- [ Docker's restart] ( https://docs.docker.com/engine/reference/run/#restart-policies---restart ) policy.
18+ The Nginx and PHP-FPM master processes are controlled by
19+ [ Honcho] ( https://github.com/nickstenning/honcho ) . Honcho was chosen over
20+ Supervisor, because honcho will exit and kill the container if either Nginx or
21+ PHP's master process dye for any reason. If you want have to have the container
22+ restarted automatically, you may want to use
23+ [ Docker's restart] ( https://docs.docker.com/engine/reference/run/#restart-policies---restart )
24+ policy.
2225
2326## Usage
2427
@@ -31,8 +34,8 @@ docker run --restart=always -v /path/to/php/source/:/usr/local/nginx/html/ rtuce
3134
3235## Advanced configuration
3336
34- You by default, the image is configured to work out of the box, however you may add your own Nginx or
35- PHP related configuration files.
37+ You by default, the image is configured to work out of the box, however you may
38+ add your own Nginx or PHP related configuration files.
3639
3740### Nginx
3841
@@ -48,13 +51,14 @@ Mount your custom `nginx.conf` file at `/usr/local/nginx/conf/nginx.conf`.
4851
4952### Xdebug
5053
51- Xdebug was installed mainly with the idea of providing code coverage for PHPUnit. Thus it's not
52- configured for any specific use case. You can [ configure Xdebug ] ( https://xdebug.org/docs/all ) via
53- ` php.ini ` if desired.
54+ Xdebug was installed mainly with the idea of providing code coverage for
55+ PHPUnit. Thus it's not configured for any specific use case. You can
56+ [ configure Xdebug ] ( https://xdebug.org/docs/all ) via ` php.ini ` if desired.
5457
5558### Honcho
5659
57- If you want to overwrite the default Honcho configuration - mount your custom ` Procfile ` file at ` / ` .
60+ If you want to overwrite the default Honcho configuration - mount your custom
61+ ` Procfile ` file at ` / ` .
5862
5963## Todo
6064
0 commit comments