Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 749 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 749 Bytes

Overview

This image has built in php7, apache, composer, php bindings for pgsql, redis, soap etc.

General Purpose : Used for projects involving simplesamlphp, soap etc.

While running this, map the files you want to deploy to /var/www/html. For example, if your host side folder is ./app, use

docker run -v $(pwd)/app:/var/www/html .....

Environment Variables

DOCUMENT_ROOT : If you don't specify this environment variable, /var/www/html is used by default. API_TOKEN: If you specify a gitbub api token, this will help composer, so it won't ask for token during install. PORT: default listen port, useful if deploying to heroku

Using redis

use Redis;


$redis = new Redis();
$redis->connect('redis');
echo $redis->ping();