Skip to content

dazl/docker-php7-fpm-nginx-alpine-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php7-fpm-nginx-alpine-composer

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

The image is available on Docker Hub

tag php nginx
v1.0 7.0 1.10.2
v1.1 7.1 1.10.2

Example Dockerfile:

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

# 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"]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages