Public Repository

Last pushed: 8 months 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 nginx.site.conf /etc/nginx/conf.d/default.conf

EXPOSE 80 443

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

Comments (0)