Skip to content

Commit

Permalink
⚡ increase php timeout and input vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bunop committed Jan 29, 2024
1 parent eb63bcb commit b87e5a3
Show file tree
Hide file tree
Showing 4 changed files with 1,993 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compose/wordpress/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:


php:
image: wordpress:6.4.2-fpm
build: php

expose:
- "9000"
Expand Down
28 changes: 28 additions & 0 deletions compose/wordpress/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

#
# VERSION 0.5
# DOCKER-VERSION 25.0.1
# AUTHOR: Paolo Cozzi <[email protected]>
# DESCRIPTION: A php-fpm container to work with phpmyadmin
# TO_BUILD: docker build --rm -t wordpress_php .
# TO_RUN: docker run -d -P wordpress_php
# TO_TAG: docker tag wordpress_php:latest wordpress_php:0.5
#

# Starting from wordpress fpm (which derives from php:5.6.fpm)
FROM wordpress:6.4.2-fpm

# MAINTAINER is deprecated. Use LABEL instead
LABEL maintainer="[email protected]"

# synchronize timezone for container
# https://forums.docker.com/t/synchronize-timezone-from-host-to-container/39116
RUN echo "Europe/Rome" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata

# Use the default production configuration
# as suggested in https://github.com/docker-library/docs/blob/master/php/README.md#configuration
RUN mv "${PHP_INI_DIR}/php.ini-production" "${PHP_INI_DIR}/php.ini"

# add a custom file
COPY "conf.d/custom.ini" "${PHP_INI_DIR}/conf.d/"
11 changes: 11 additions & 0 deletions compose/wordpress/php/conf.d/custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; https://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 180

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 2048
Loading

0 comments on commit b87e5a3

Please sign in to comment.