GithubHelp home page GithubHelp logo

haveatest2016 / alpine-lnmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qishibo/alpine-lnmp

0.0 0.0 0.0 9 KB

Pure lnmp environment running in docker, based on alpine, total size is only 200MB and compressed size is only 70MB.

PHP 0.83% Shell 25.71% Dockerfile 73.45%

alpine-lnmp's Introduction

alpine lnmp

Pure lnmp environment running in docker, based on alpine, total size is only 200MB and compressed size is only 70MB.

hitherto 2019.05.27 versions:

  • nginx 1.16.0
  • php 7.2.18
  • mysql 10.3.15-MariaDB

PHP Extensions

  • php7-ctype
  • php7-curl
  • php7-dom
  • php7-exif
  • php7-fileinfo
  • php7-gd
  • php7-gettext
  • php7-iconv
  • php7-imagick
  • php7-json
  • php7-mbstring
  • php7-mcrypt
  • php7-memcached
  • php7-mysqli
  • php7-mysqlnd
  • php7-opcache
  • php7-openssl
  • php7-pcntl
  • php7-pdo
  • php7-pdo_mysql
  • php7-pdo_pgsql
  • php7-pdo_sqlite
  • php7-posix
  • php7-redis
  • php7-session
  • php7-simplexml
  • php7-sockets
  • php7-sqlite3
  • php7-xml
  • php7-xmlwriter
  • php7-zli
  • php7-fpm

Usage

Basic

# pull the image
docker pull qii404/alpine-lnmp

# default index.php is phpinfo if without '-v'
docker run -itd -p80:80 -p3306:3306 --name alpine-lnmp qii404/alpine-lnmp:latest

view http://localhost after two minutes [mysql is initing while starting...], you will see yours

phpinfo


Mount your code

# mount your application code
docker run -itd -p80:80 -p3306:3306 -v /Your-Code-Path:/usr/share/nginx/html --name alpine-lnmp qii404/alpine-lnmp:latest

Mysql

user:root password:root

# connect
mysql -h 127.0.0.1 -uroot -proot

# if you want to mount my.cnf yourself
docker run -v my.cnf:/etc/mysql/my.cnf ...

# if you want to mount mysql datadir
docker run -v /your_data_dir/:/var/lib/mysql/ ...

Nginx

root path: /usr/share/nginx/html

# if you want to mount your nginx.conf
docker run -v nginx.conf:/etc/nginx/nginx.conf ...

# if you want to add more nginx conf to conf.d
docker run -v /your_conf.d/:/etc/nginx/conf.d/

alpine-lnmp's People

Contributors

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