Code Monkey home page Code Monkey logo

teng2015 / docker-tengine-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiongjungit/docker-tengine-php

0.0 1.0 0.0 85 KB

Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。

License: Apache License 2.0

Shell 63.15% Nginx 22.57% HTML 0.33% PHP 0.16% Vim Script 13.79%

docker-tengine-php's Introduction

简介

Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。

从2011年12月开始,Tengine成为一个开源项目,Tengine团队在积极地开发和维护着它。Tengine团队的核心成员来自于淘宝、搜狗等互联网企业。Tengine是社区合作的成果,我们欢迎大家参与其中,贡献自己的力量。

Tengine - PHP-fpm

这是一个Tenginenx和php-fpm的docker镜像。

组件

  • Tengine

  • php

  • openssh-server

特点:

  • 所有配置文件都从/configs做软链接, 从而测试/优化可以挂载文件夹而不是重建图像

  • 不包含mysql数据库,需要链接额外的数据库镜像。

使用:

建议在使用之前检查所有的配置文件

构建

docker build -t xman/docker-tengine-php .

开发

docker run -i -t \
-v /Volumes/sitename/www/:/var/www \
-v /root/.ssh/authorized_keys:/root/.ssh/authorized_keys \
-v `pwd`/configs/:/configs/ \
-link mariadb:db \
-p 80:80 -p 2222:22 -p 443:443 \
xman/docker-tengine-php bash

正常启动

docker run -d \
-v /Volumes/sitename/www/:/var/www \
-v /root/.ssh/authorized_keys:/root/.ssh/authorized_keys \
-link mariadb:db \
-p 80:80 -p 2222:22 \
xman/docker-tengine-php bash

实例

  • db:
docker run -d -p 3306:3306 -v /data/wordpress/db:/var/lib/mysql --name mysql xman/docker-mysql
========================================================================
You can now connect to this MySQL Server using:

    mysql -uadmin -pWxfLmXP2FFwa -h<host> -P<port>

Please remember to change the above password as soon as possible!
MySQL user 'root' has no password but only allows local connections
========================================================================
  • web:
docker run -d -p 80:80 -v /data/wordpress/web/wordpress/:/var/www/ --link mysql:db --name wordpress xman/docker-tengie-php

代码创建和维护

docker-tengine-php's People

Contributors

xiongjungit 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.