PHP FPM based on the official php docker images for versions not supported there, currently 5.3
- php memory limit: Set the environent variable PHP_MEMORY_LIMIT to your desired limit. leaving it empty will use 1024M as default
- php post limit: Set the environent variable PHP_POST_MAX_SIZE to your desired limit. leaving it empty will use 8M as default
- php file upload size limit: Set the environent variable PHP_UPLOAD_MAX_FILESIZE to your desired limit. leaving it empty will use 2M as default
- php default timezone: Set the environent variable DEFAULT_TIMEZONE to your desired zone. Leaving it empty will use UTC as default
This image uses ssmtp for sending mails. The following environment variables can be set to influence the ssmtp configuration file:
Environment variable | ssmtp configuration file value | default value | Comment = |
---|---|---|---|
SMTP_SERVER | mailhub | smtp | |
SMTP_TLS | UseTLS | NO | |
SMTP_START_TLS | UseSTARTTLS | NO | |
SMTP_AUTHENTICATION | AuthMethod | `` | |
SMTP_USER | AuthUser | smtp | Only set if SMTP_AUTHENTICATION is not empty |
SMTP_PASSWORD | AuthPass | smtp | Only set if SMTP_AUTHENTICATION is not empty |
FROM_OVERRIDE | FromLineOverride | YES |
docker run -d --name fpm53 ipunktbs/php-fpm:53-1.1.7
docker run -d --name actual-container --volumes-from fpm53 actual_container
-> Use /var/run/php/php-fpm.sock
to connect to fpm
Start this container as a sidekick of your webserver.
On the main container go to volumes and tick volume_from
for the fpm sidekick
Configure it to use var/run/php/php-fpm.sock
to connect to fpm.
Set php
in the WebserverBlueprint to 5.3