Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.63 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.63 KB

PHP-FPM

https://hub.docker.com/r/opencycle/php/ Docker Pulls

This image provides PHP-FPM and the required PHP extensions for Opencycle. It is based on the Official PHP-FPM Alpine image.

Supported tags and respective Dockerfile links

We provide the following version tags:

Included Extensions

Additional extensions included in addition to the base PHP-FPM Docker image:

  • mcrypt
  • opcache
  • pdo_mysql
  • pdo_pgsql

Usage

Use as part of a multi-stage build as your final application image:

FROM opencycle/php:7.2 as application

COPY . /srv/www

PHP-FPM will then be exposed on port 9000 you will need to use this image in combination with a web server image like opencycle/nginx.

services:
  php:
    image: opencycle/php:7.2
    volumes:
      - ./:/srv/www
  nginx:
    image: opencycle/nginx:latest
    volumes:
      - ./:/srv/www
    ports:
      - 80:80