Skip to content

Commit 341cc9c

Browse files
committed
Describe the way to customize the configuration of Nginx and PHP
1 parent 5fa9be0 commit 341cc9c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,21 @@ See the PHP info on http://localhost, or the static html page on http://localhos
4040
Or mount your own code to be served by PHP-FPM & Nginx
4141

4242
docker run -p 80:8080 -v ~/my-codebase:/var/www/html trafex/alpine-nginx-php7
43+
44+
## Configuration
45+
In [config/](config/) you'll find the default configuration files for Nginx, PHP and PHP-FPM.
46+
If you want to extend or customize that you can do so by mounting a configuration file in the correct folder;
47+
48+
Nginx configuration:
49+
50+
docker run -v "`pwd`/nginx-server.conf:/etc/nginx/conf.d/server.conf" trafex/alpine-nginx-php7
51+
52+
PHP configuration:
53+
54+
docker run -v "`pwd`/php-setting.ini:/etc/php7/conf.d/settings.ini" trafex/alpine-nginx-php7
55+
56+
PHP-FPM configuration:
57+
58+
docker run -v "`pwd`/php-fpm-settings.conf:/etc/php7/php-fpm.d/server.conf" trafex/alpine-nginx-php7
59+
60+
_Note; Because `-v` requires an absolute path I've added `pwd` in the example to return the absolute path to the current directory_

0 commit comments

Comments
 (0)