项目作者: habibiefaried

项目描述 :
Building my website with docker alpine image, pagespeed, php-fpm, mysql, redis. Feel free to use it too :)
高级语言: C
项目地址: git://github.com/habibiefaried/High-Performance-Web.git
创建时间: 2017-02-08T00:33:08Z
项目社区:https://github.com/habibiefaried/High-Performance-Web

开源协议:MIT License

下载


Description

Building full stack webserver with docker alpine image, pagespeed, php-fpm, mysql, redis.
Feel free to use and hack this :)

Why you build this?

Because I want to share my webserver configuration, that had already proven with thousand of concurrent connections (in my own real case).

Features

  1. Alpine OS (very light image/os)
  2. Nginx 1.11.2
  3. Google PageSpeed 1.11.33.4-0 (Thanks @lagun4ik !)
  4. PHP-FPM 5.6 with PECL (with many extensions)
  5. MySQL
  6. PHPMyAdmin and phpinfo (basic needs)
  7. Redis and PHPRedisAdmin
  8. Composer

How to run

Just ./build-docker.sh ;)

Why this image so light and fast?

Thanks to (alpinelinux.org) team who builds this mini and powerful image.
Also I’m using Google PageSpeed and multiple php-fpm pooling. Please see the configuration ;)

Where’s EXPOSE command?

This image was designed to use NGROK (https://ngrok.com/) to expose your chosen local port.
I’ve been using it for while and found it useful!

Besides, It’s very easy to EXPOSE port isn’t it? ;)

This Dockerfile is not well documented and written

Please fork and pull request ;). I’ll write your name on credits!

This Dockerfile needs to be improved

Again, please fork and pull request

Reference

Screenshots

picture alt
picture alt
picture alt
picture alt

Credits

  1. Me
  2. Yahya @k1m0ch1

Beware

You have to put your own security properly. For example, /adminconsole and other paths are still hardcoded. Just don’t forget to change that!