Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 9c3858e

Browse files
committed
add brief section how to configure php.ini settings
1 parent 9f8ba39 commit 9c3858e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,23 @@ apk add --no-cache php7.3-dev gcc g++
148148
pecl install {extension-name}
149149
```
150150

151+
### PHP ini settings
152+
153+
To configure extra [php.ini](https://www.php.net/manual/en/ini.php): settings,
154+
create application specific `php.ini` and copy the file into docker image:
155+
156+
157+
```ini
158+
# php.ini
159+
memory_limit = 512M
160+
```
161+
162+
```Dockerfile
163+
FROM phpearth/php:7.3-nginx
164+
165+
COPY php.ini $PHP_INI_DIR/conf.d/my-app.ini
166+
```
167+
151168
#### Missing extension?
152169

153170
In case you'd need an additional extension in the PHP.earth repository, [open an issue](https://github.com/phpearth/docker-php/issues).

0 commit comments

Comments
 (0)