GithubHelp home page GithubHelp logo

frank-webs / dockerfile-php-fpm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibbd/dockerfile-php-fpm

0.0 1.0 0.0 1.45 MB

该镜像主要为满足 laravel5 框架而制作,并附加了 redis, mongo, msgpack, swoole等扩展。

Home Page: https://hub.docker.com/r/ibbd/php-fpm

License: MIT License

Shell 1.01% PHP 98.99%

dockerfile-php-fpm's Introduction

PHP FPM Dockerfile

该镜像主要为满足 laravel5 框架而制作,并附加了 redis, mongo, msgpack, swoole等扩展。

如果需要phpunit,xdebug,pman等测试及开发工具,请使用ibbd/php-dev镜像,对应的dockerfile在目录php-dev下。

基础说明

  • 基础镜像:php-fpm:5.6
  • 使用了阿里云的更新源,见 ./ext/sources.list

PHP扩展

  • gd
  • iconv
  • mcrypt
  • pdo
  • tokenizer
  • mbstring
  • gd
  • redis
  • mongo
  • msgpack
  • zip
  • mysqli
  • imagick

附加安装

  • php composer

安装

  • Dockerfile: sudo ./build.sh
  • Pull: sudo docker pull ibbd/php-fpm

使用

# 代码目录
code_path=/var/www

# 日志目录
logs_path=/var/log/php

current_path=$(pwd)
docker run --name=ibbd-php-fpm -d \
    -p 9000:9000 \
    -v $code_path:/var/www \
    -v $logs_path:/var/log/php \
    -v $current_path/conf/php.ini:/usr/local/etc/php/php.ini:ro \
    -v $current_path/conf/php-fpm.conf:/usr/local/etc/php-fpm.conf:ro \
    ibbd/php-fpm \
    php-fpm -c /usr/local/etc/php/php.ini -y /usr/local/etc/php-fpm.conf

说明:完整的应用见 ./run.sh.example

dockerfile-php-fpm's People

Contributors

cyy0523xc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.