Sign inSign up

chindocaine/php

By chindocaine

•Updated about 7 years ago

PHP FPM for use in combination with nginx. Includes mysqli extension and SSMTP.

Image
0

4.1K

chindocaine/php repository overview

This image is based on the official PHP image (7.2-fpm-alpine). It has only 2 additions:

  • mysqli extension installed and enabled
  • SSMTP is installed, so the PHP mail() function can be used

A custom php.ini can be linked to /usr/local/etc/php/php.ini To use SSMTP, link the configuration file to /etc/ssmtp/ssmtp.conf

Example for ssmtp.conf:

# Where should local mail for UID<1000 go?
[email protected]

# The mail server that should be used. ":port" is optional.
mailhub=smtp.mymailprovider.com:port

# The domain that is appended to local user names.
rewriteDomain=mymaildomain.com

# The full hostname of the local system.
hostname=myhost.mydomain.com

# Use SSL/TLS?
UseTLS=Yes
UseSTARTTLS=Yes

# User name and password, if SMTP server requires authentication. Comment out otherwise.
AuthUser=username
AuthPass=password
AuthMethod=LOGIN

# Should 'From' headers override the default domain?
FromLineOverride=yes

Tag summary

Content type

Image

Digest

Size

114.4 MB

Last updated

about 7 years ago

docker pull chindocaine/php