This image provides PHP-FPM and the required PHP extensions for Opencycle. It is based on the Official PHP-FPM Alpine image.
We provide the following version tags:
Additional extensions included in addition to the base PHP-FPM Docker image:
mcrypt
opcache
pdo_mysql
pdo_pgsql
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