kasnet / lnmp

nginx+php-fpm

Home Page:https://registry.hub.docker.com/u/kasnet/lnmp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker hub docker hub

Version

Docker Tag GitHub Release Nginx Version PHP Version Alpine Version Mysql Version
latest Master Branch 1.13.7 7.1.12 3.4 5.7

PHP Modules

[PHP Modules]
amqp
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
hash
iconv
intl
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
SPL
sqlite3
standard
swoole
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
rdkafka

[Zend Modules]
Zend OPcache

Links

Quick Start PHP

To pull from docker hub:

docker pull kasnet/lnmp

Running

To run the container:

sudo docker run -it 
-p 88:80 
-v <project_path>/src:/var/www/html:rw 
-v <project_path>/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:rw 
-v <project_path>/conf/nginx/vhosts/nginx-site.conf:/etc/nginx/sites-available/default.conf:rw
--name lnmp
-d kasnet/lnmp /start.sh

To into the container:

sudo docker exec -it lnmp /bin/bash

Quick Start MSYQL

To pull from docker hub:

docker pull mysql:5.7

Runing

To run the container:

docker run --name mysql 
-p 3306:3306 
-e MYSQL_ROOT_PASSWORD=123456 
-v $PWD/logs:/logs 
-v $PWD/data:/mysql_data
-v $PWD/conf/my.cnf:/etc/mysql/conf.d/my.cnf 
-d mysql:5.7

To into the container:

sudo docker exec -it mysql /bin/bash

About

nginx+php-fpm

https://registry.hub.docker.com/u/kasnet/lnmp/

License:GNU General Public License v3.0


Languages

Language:Dockerfile 65.1%Language:Shell 18.9%Language:CSS 13.4%Language:HTML 2.5%Language:PHP 0.0%