Sign inSign up

asteris/apache-php-mongo

By asteris

Updated over 8 years ago

Apache2.4 + PHP + Mongo + mod_rewrite

Image
3

6.2K

asteris/apache-php-mongo repository overview

##Overview

This dockerfile allows you to build a container that is suitable for running and testing PHP applications that use Mongo as a Data store.

##Components

  • Base: Ubuntu 14.04
  • PHP: 5.5x
  • Mongo PHP driver (PECL install): 1.5x
  • PHP composer
  • MongoDB 2.2x binaries
  • Apache 2.4 with mod_rewrite enabled

##Running & Building ###Using this container as a base Use this container as a base for your application. Below is an example Dockerfile in which we add a VHost to the apache config:

FROM asteris/apache-php-mongo:latest

ADD MyVhost.conf /etc/apache2/sites-enabled/

CMD ["/run.sh"]

###Running

docker run -d -v /host/www:/app -p 80 asteris/apache-php-mongo:latest

##Copyright Asteris, LLC 2014. Released under the Apache 2.0 License

Tag summary

Content type

Image

Digest

sha256:82a5577bf

Size

217.4 MB

Last updated

over 8 years ago

docker pull asteris/apache-php-mongo