Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 2.01 KB

README.md

File metadata and controls

49 lines (29 loc) · 2.01 KB

Apache and PHP on Docker

Build Status

This is a basic Docker environment for PHP development, based on akeneo/php.

It provides a preconfigured Apache (2.4) web server with mod_php.

The environment comes with some PHP extensions: apcu, mcrypt, intl, mysql, curl, gd, mongo, soap, xml, zip, and xdebug (this last one is deactivated by default, run phpenmod xdebug and restart Apache to enable it).

This image does not contain Akeneo PIM.

Supported tags and respective Dockerfile links

  • php-7.1, latest (Dockerfile): The environment comes with Debian 9 (Stretch) with PHP 7.1 from Sury repository
  • php-7.0 (Dockerfile): The environment comes with Debian 9 (Stretch) with native PHP 7.0
  • php-5.6 (Dockerfile): The environment comes with Debian 8 (Jessie) with native PHP 5.6

How to use it

From Docker hub

You can directly pull this image from Docker hub by running:

$ docker run --name akeneo-apache-php -p 8080:80 -d akeneo/apache-php

Access the URL localhost:8080 with your web browser to check that the container works.

From GitHub

Clone the repository, go inside the created folder, and build the docker image:

$ docker build -t akeneo-apache-php .

Then you can run a container like this:

$ docker run --name akeneo-apache-php -p 8080:80 -d akeneo-apache-php

Full documentation is accessible here

License

This repository is under the MIT license. See the complete license in the LICENSE file.