这是一个Shopex ECStore B2C/B2B2C docker官方镜像
注意:镜像中只有php 运行环境,不含产品代码包。如需代码,请联系商派(shopex)购买商业授权。www.shopex.cn
欢迎在github上提交PR来改进我们的镜像
The source files for this project can be found here: https://github.com/shopex/docker-ecstore
If you have any improvements please submit a pull request.
The Docker hub build can be found here: https://hub.docker.com/r/ecstore/docker-ecstore/
说明: docker 中默认没有安装 redis server,请自行搭建 redis server.
php72-swooleloader
(php72-swooleloader/Dockerfile)php72-swooleloader-mysql
(php72-swooleloader-mysql/Dockerfile)
Tag | Nginx | PHP | mysql | ZendGuard Loader | Swoole Loader | Dockerfile | 适用产品版本 |
---|---|---|---|---|---|---|---|
php72-swooleloader | nginx/1.12.1 | 7.2.11 | - | - | 2.0.2 | php72-swooleloader/Dockerfile | b2b2c 5.0 |
php72-swooleloader-mysql | nginx/1.12.1 | 7.2.11 | 5.6.28 | - | 2.0.2 | php72-swooleloader-mysql/Dockerfile | b2b2c 5.0 |
php56-swooleloader-2.0.2 | nginx/1.12.1 | 5.6.40 | - | - | 2.0.2 | php56-swooleloader-2.0.2/Dockerfile | >= ecstore 5.0.2(php5.6) |
php56-swooleloader-1.9.0
(php56-swooleloader/Dockerfile)php56-swooleloader-1.9.0-mysql
(php56-swooleloader-mysql/Dockerfile)php72-swooleloader-1.9.0
(php72-swooleloader/Dockerfile)php72-swooleloader-1.9.0-mysql
(php72-swooleloader-mysql/Dockerfile)
Tag | Nginx | PHP | mysql | ZendGuard Loader | Swoole Loader | Dockerfile | 适用产品版本 |
---|---|---|---|---|---|---|---|
php56-swooleloader-1.9.0 | nginx/1.12.1 | 5.6.37 | - | - | 1.9.0 | php56-swooleloader/Dockerfile | ECstore B2C 5.0.1 |
php56-swooleloader-1.9.0-mysql | nginx/1.12.1 | 5.6.37 | 5.6.28 | - | 1.9.0 | php56-swooleloader-mysql/Dockerfile | ECstore B2C 5.0.1 |
php72-swooleloader-1.9.0 | nginx/1.12.1 | 7.2.11 | - | - | 1.9.0 | php72-swooleloader/Dockerfile | 升级为 swoole 2.0,该版本已弃用 |
相关默认配置:
web_root
: /data/httpd/mysql_data
: /data/mysql/php.ini
:/etc/php.iniphp-fpm 扩展配置
: /etc/php.d/nginx config
: /etc/nginx/启动脚本
: /start.sh重启 php-fpm
: supervisorctl reload 或 supervisorctl restart allswooleloader 配置
: /etc/php.d/swoole_loader.ini
vim /etc/php.d/swoole_loader.ini
[swoole]
extension = swoole_loader72.so
;加入授权证书文件,更改后,需要重启 php-fpm 才能生效
swoole_license_files=/data/httpd/config/developer.zl
# 启动不含mysql的容器 php7.2-swooleloader 2.0.2
sudo docker run -d -p 8080:80 -v /path-to-ecstore:/data/httpd ecstore/docker-ecstore:php72-swooleloader
# 启动包含mysql的容器 php7.2-swooleloader 2.0.2
sudo docker run -d -p 8080:80 -v /path-to-ecstore:/data/httpd ecstore/docker-ecstore:php72-swooleloader-mysql
# 启动不含mysql的容器 php5.6-swooleloader1.9.0
sudo docker run -d -p 8080:80 -v /path-to-ecstore:/data/httpd ecstore/docker-ecstore:php56-swooleloader-1.9.0
mysql 默认没有密码
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h 563dacdc4a71 password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems at http://bugs.mysql.com/
The latest information about MySQL is available on the web at http://www.mysql.com
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
swoole_loader
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
Zend Guard Loader
zip
zlib
[Zend Modules]
Zend Guard Loader
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
swoole_loader
tokenizer
xml
zip
zlib
[Zend Modules]