HUB
Sign inSign up

lucidprogrammer/php7

By lucidprogrammer

•Updated about 9 years ago

Dev- General Purpose

Image
0

187

lucidprogrammer/php7 repository overview

⁠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();
Tag summary
Recent tags
Content type
Image
Digest
Size
198.5 MB
Last updated
about 9 years ago
docker pull lucidprogrammer/php7:latest