Browse Source

added custom php config

admin 1 year ago
parent
commit
9dd92ed8ec
2 changed files with 20 additions and 1 deletions
  1. 15 1
      EXTRAS/README.md
  2. 5 0
      EXTRAS/custom.ini

+ 15 - 1
EXTRAS/README.md

@@ -1,6 +1,6 @@
 # EXTRAS
 ## LDAP
-To enable the ldap php extension, put [Dockerfile](Dockerfile) in ./build and run 
+To enable the ldap php extension, put [Dockerfile](Dockerfile) in ./build/ and run 
 `docker compose build` with following extra line in `docker-compose.yml`:
 ```
 services:
@@ -16,3 +16,17 @@ EXTRAS folder contains a sample config.ini. To make use of it put it in the ./da
 
 To list installed php externsions, run: 
 docker exec -it <container_name> sh -c 'php -r "print_r(get_loaded_extensions());"'
+
+
+
+
+## Custom php configuration
+To add you custom php configuration, put [config.ini](config.ini) in ./conf/ and
+add following extra line in `docker-compose.yml`:
+```
+services:
+  wordpress:
+    volumes:
+      - ./conf/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro
+
+```

+ 5 - 0
EXTRAS/custom.ini

@@ -0,0 +1,5 @@
+upload_max_filesize = 128M 
+post_max_size = 128M
+memory_limit = 256M
+max_execution_time = 300
+max_input_time = 300