Skip to content

Commit 7b5b060

Browse files
committed
Updated README
1 parent c7e001f commit 7b5b060

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,35 @@ php:
1616
1717
## PHP version
1818
19-
To use a specific PHP version, append the version number to the image name.
19+
To use a specific PHP version, append the version number to the image name.
2020
2121
Eg: `image: yappabe/php:5.6`
2222

2323
The following PHP versions are available:
2424

25-
* PHP 7.0.0 (jessie stable)
25+
* PHP 7.0 (jessie stable)
2626
* PHP 5.6 (jessie stable)
2727
* PHP 5.4 (wheezy stable)
2828
* PHP 5.3 (squeeze stable)
2929

30+
## Configurations
31+
32+
You can configure the following environment vars, these are the defaults.
33+
34+
```
35+
ENV ENVIRONMENT dev
36+
ENV PHP_FPM_USER www-data
37+
ENV PHP_FPM_PORT 9000
38+
ENV PHP_ERROR_REPORTING "E_ALL \& ~E_NOTICE \& ~E_STRICT \& ~E_DEPRECATED"
39+
```
40+
41+
## Development and permissions
42+
43+
Run php-fpm process as `root` user to avoid cli and fpm permission collissions.
44+
Never ever use this in production!
45+
46+
```
47+
ENV PHP_FPM_USER www-data
48+
```
49+
50+

0 commit comments

Comments
 (0)