Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.97 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.97 KB

PHP FPM on Docker

Build Status

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

It comes with the following PHP extensions: apcu, mcrypt, intl, mysql, curl, gd, mongo, soap, xml, zip and xdebug (this last one is deactivated by default, run phpenmod xdebug to enable it)

It is intended to be used httpd with FCGI enable or nginx.

The PHP FPM daemon is configured with "docker" as user and group, and listens to the port 9001.

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 -d --name akeneo-fpm akeneo/fpm

From GitHub

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

$ docker build -t akeneo-fpm .

Then you can run a container like this:

$ docker run --name akeneo-fpm -d akeneo-fpm

Full documentation is accessible here

License

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