Public | Automated Build

Last pushed: 3 days ago
Short Description
php images with mbstrings and bcmath extensions for use with laravel and rabbitmq
Full Description

docker-php-fpm

PHP FPM based on the official php docker images for versions not supported there, currently 5.3

Configuration

  • 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

Smtp

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

Usage

Docker

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

Rancher

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.

Rancherize

Set php in the WebserverBlueprint to 5.3

Docker Pull Command
Owner
ipunktbs
Source Repository