Skip to content

viken2/docker-web

Repository files navigation

docker-web 使用

www目录为对应代码目录,最新版php:php-7.3,nginx版本:nginx:1.16-alpine,同时支持php-5.6

build php镜像

  • php73-alpine,构建完大概95m
  • php56-alpine,构建完大概83m
$ cd php-*
$ ./build.sh

运行docker-compose

$ sudo docker-compose up
或者
$ ./run.sh

相关配置

可以通过修改一下配置,然后通过volumes挂载生效,比如需要display error,可以修改php.ini中 display_errors = On

  • php配置 php/conf/php.ini
  • php-fpm配置 php/conf/php-fpm.conf
  • nginx相关配置 nginx/www.conf

附 PHP Modules

[PHP Modules]
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
redis
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

About

web docker 微服务化,PHP7.3+Nginx环境

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages