Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP5-FPM with SSMTP and NewRelic
Full Description

docker-phpfpm

This repository contains the Dockerfile and the configuration files to build a Load Balancer based on Nginx for Docker.
SSMTP and NewRelic have been added and the configuration is managed by ENV variables.

Base Docker Image

Installation

docker build -t mkaag/phpfpm github.com/mkaag/docker-phpfpm

Usage

Basic usage

docker run -d -p 9000:9000 mkaag/phpfpm

Using persistent volume

docker run -d -p 9000:9000 \
-v /opt/apps/public:/var/www \
mkaag/phpfpm

Using NewRelic

docker run -d \
-e "NEWRELIC_LICENSE=your_license" \
-e "NEWRELIC_APP=your_app" \
-p 9000:9000 mkaag/phpfpm

Using ssmtp

docker run -d \
-e "SMTP_HOST=mail.domain.com:587" \
-e "SMTP_DOMAIN=domain.com" \
-e "SMTP_TLS=true" \
-e "SMTP_STARTTLS=true" \
-e "SMTP_USERNAME=username" \
-e "SMTP_PASSWORD=password" \
-p 9000:9000 mkaag/phpfpm

All together

docker run -d \
-v /opt/apps/public:/var/www \
-e "NEWRELIC_LICENSE=your_license" \
-e "NEWRELIC_APP=your_app" \
-e "SMTP_HOST=mail.domain.com:587" \
-e "SMTP_DOMAIN=domain.com" \
-e "SMTP_TLS=true" \
-e "SMTP_STARTTLS=true" \
-e "SMTP_USERNAME=username" \
-e "SMTP_PASSWORD=password" \
-p 9000:9000 mkaag/phpfpm
Docker Pull Command
Owner
mkaag
Source Repository