Skip to content

Commit a8df81c

Browse files
author
Karsten Nilsen
committed
Add documentation for configuring FRANKENPHP_LOOP_MAX by env variable
1 parent 182563a commit a8df81c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/frankenphp-symfony/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,15 @@ return function (array $context) {
4040
## Options
4141

4242
* `frankenphp_loop_max`: the number of requests after which the worker must restart, to prevent weird memory leaks (default to `500`, set to `-1` to never restart)
43+
44+
This option can also be configured via the `FRANKENPHP_LOOP_MAX` environment variable:
45+
46+
```
47+
docker run \
48+
-e FRANKENPHP_CONFIG="worker ./public/index.php" \
49+
-e APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime \
50+
-e FRANKENPHP_LOOP_MAX=25 \
51+
-v $PWD:/app \
52+
-p 80:80 -p 443:443 \
53+
dunglas/frankenphp
54+
```

0 commit comments

Comments
 (0)