Skip to content

Commit 07a3099

Browse files
committed
Add description of available env vars.
1 parent 409fe1c commit 07a3099

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,22 @@ There must be a `app.php` inside the folder.
99

1010
```
1111
docker run --rm -it --env NGINX_WEB_ROOT=/app/web -p 80:80 -v /home/user/app/:/app makasim/nginx-php-fpm
12-
```
12+
```
13+
14+
## Env vars
15+
16+
Here's available env vars and their default values:
17+
18+
```
19+
NGINX_WEB_ROOT= /var/www/html
20+
NGINX_PHP_FALLBACK= /app.php
21+
NGINX_PHP_LOCATION= ^/app\.php(/|$)
22+
NGINX_USER= www-data
23+
NGINX_CONF= /etc/nginx/nginx.conf
24+
25+
PHP_SOCK_FILE= /run/php.sock
26+
PHP_USER= www-data
27+
PHP_GROUP= www-data
28+
PHP_MODE= 0660
29+
PHP_FPM_CONF= /etc/php/7.0/fpm/php-fpm.conf
30+
```

0 commit comments

Comments
 (0)