https://github.com/ipunkt/docker-php-fpm
PHP FPM based on the official php docker images for versions not supported there, currently 5.3
https://github.com/ipunkt/docker-php-fpm
Last synced: about 1 year ago
JSON representation
PHP FPM based on the official php docker images for versions not supported there, currently 5.3
- Host: GitHub
- URL: https://github.com/ipunkt/docker-php-fpm
- Owner: ipunkt
- License: mit
- Created: 2017-01-16T09:27:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T09:31:29.000Z (almost 9 years ago)
- Last Synced: 2025-02-07T05:27:42.491Z (over 1 year ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`