Skip to content

kasnet/lnmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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