Sign inSign up

jonhartley/apache-php7

By jonhartley

Updated over 8 years ago

CentOS 7 Apache / PHP7.2

Image
0

10K+

jonhartley/apache-php7 repository overview

Apache 2.4 / PHP 7.2

Basic Info
  • CentOS 7 container running Apache with PHP 7.2, basic ENV variables as follows
ENV Variables
  • SERVERNAME="www.example.com" - servername of apache
  • LOGTOVOL="true" - you can mount a vol on /var/log/httpd for persistant logs if this is set to true otherwise logs got to stdout and stderr
  • TESTFILE="true" - create an index.php (phpinfo();) file in apache doc root
  • TELEGRAF="true" - enable telegraf endpoint - output to prometheus on port 9117
  • TELEGRAFINFLUX="http://localhost:8086" - enable telegraf straight into InfluDB
  • TIMEZONE="UTC" - PHP timezone

docker run --privileged \
--name apache \
--hostname apache \
-p 80:80 \
-p 9117:9117 \
-e SERVERNAME="www.example.com" \
-e TESTFILE="true" \
-e TELEGRAF="true" \
-e TELEGRAFINFLUX="http://influx:8086" \
-e TIMEZONE="UTC" \
-e LOGTOVOL="true" \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-d local/apache-php7 /usr/sbin/init

Tag summary

Content type

Image

Digest

Size

167.5 MB

Last updated

over 8 years ago

docker pull jonhartley/apache-php7