Public Repository

Last pushed: a year ago
Short Description
php7 fpm with nginx based on alpine with composer
Full Description

Supported tags and Dockerfile links:

  • v1.1 (php:7.1-fpm-alpine and nginx:1.10.2-alpine) — Dockerfile
  • v1.0 (php:7.0-fpm-alpine and nginx:1.10.2-alpine) — Dockerfile

This image:

  • starts from php:7.1-fpm-alpine
  • installs composer
  • adds nginx:1.10.2-alpine with its nginx.conf and a modified nginx.vh.default.conf
  • installs and configures supervisord per docker docs

Example Dockerfile:

FROM dazl/php7-fpm-nginx-alpine-composer:v1.1

# copy your php source code from src folder
COPY src/ /usr/share/nginx/html/

# optional: custom php.ini file
# COPY config/php.ini /usr/local/etc/php/

# optional: install dependencies from composer.json
# WORKDIR /usr/share/nginx/html/
# composer install

# optional: install custom nginx config file
# COPY /etc/nginx/conf.d/default.conf

EXPOSE 80 443

CMD ["/usr/bin/supervisord"]
Docker Pull Command