add readme, outsource php-settings
This commit is contained in:
parent
c933320363
commit
1c6705b722
4 changed files with 36 additions and 15 deletions
26
README.md
Normal file
26
README.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Drupal Performance Stack
|
||||
|
||||
## Stack
|
||||
* Webserver from nginx-alpine
|
||||
* Database from postgres-alpine
|
||||
* Drupal from drupal-fpm-alpine
|
||||
+ with apcu, uploadprogress
|
||||
+ max_execution_time = 60
|
||||
+ max_input_time = 30
|
||||
+ max_input_nesting_level = 640
|
||||
+ max_input_vars = 10000
|
||||
+ memory_limit = 512M
|
||||
+ upload_max_filesize = 20M
|
||||
+ max_file_uploads = 50
|
||||
+ post_max_size = 20M
|
||||
|
||||
* Search from solr-slim-buster
|
||||
* TripleStore from slim-buster
|
||||
## Start
|
||||
* Clone Repo with `git clone git@github.com:rnsrk/performance-drupal.git`.
|
||||
* Rename .example-env to .env and set environment varibles fpr postgres service.
|
||||
* Get [GraphDB free standalone server](https://graphdb.ontotext.com/).
|
||||
* Copy zip-file to to /graphdb_context and rename it to "graphdb.zip".
|
||||
* Start containers with `docker compose up -d`.
|
||||
* Go to`http://localhost:3001`
|
||||
|
||||
|
|
@ -24,6 +24,7 @@ services:
|
|||
- external
|
||||
volumes:
|
||||
- drupal-data:/opt/drupal
|
||||
- ./drupal_context/custom-php-settings.ini:/usr/local/etc/php/conf.d/99-custom-settings.ini
|
||||
|
||||
webserver:
|
||||
image: nginx:1.23-alpine
|
||||
|
|
|
|||
|
|
@ -12,18 +12,4 @@ RUN pecl install apcu uploadprogress
|
|||
RUN docker-php-ext-enable apcu uploadprogress
|
||||
|
||||
# Remove build packages
|
||||
RUN apk del build-base autoconf
|
||||
|
||||
# Custom PHP settings
|
||||
|
||||
## PHP
|
||||
RUN { \
|
||||
echo 'max_execution_time = 60'; \
|
||||
echo 'max_input_time = 30'; \
|
||||
echo 'max_input_nesting_level = 640'; \
|
||||
echo 'max_input_vars = 10000'; \
|
||||
echo 'memory_limit = 512M'; \
|
||||
echo 'upload_max_filesize = 20M'; \
|
||||
echo 'max_file_uploads = 50'; \
|
||||
echo 'post_max_size = 20M'; \
|
||||
} > /usr/local/etc/php/conf.d/99-custom-settings.ini;
|
||||
RUN apk del build-base autoconf
|
||||
8
drupal_context/custom-php-settings.ini
Normal file
8
drupal_context/custom-php-settings.ini
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
max_execution_time = 60
|
||||
max_input_time = 30
|
||||
max_input_nesting_level = 640
|
||||
max_input_vars = 10000
|
||||
memory_limit = 512M
|
||||
upload_max_filesize = 20M
|
||||
max_file_uploads = 50
|
||||
post_max_size = 20M
|
||||
Loading…
Add table
Add a link
Reference in a new issue