PHP 5.6.23 Nginx 1.10.1
git nginx gettext libmcrypt-dev icu-libs zlib-dev unzip subversion ansible openssh-client
bcmath intl mbstring mcrypt mysqli opcache pdo_mysql
docker build -t nginx-php-walle .
docker pull ayaevil/walle-cim
docker run -d --name walle-cim -p 80:80 -p 3306:3306 -p 9001:9000 -v /opt/walle-web:/opt/walle-web -v /opt/mysql:/opt/mysql ayaevil/walle-cim
构建镜像内的命令有初始化,首先要有完整的walle-web 项目代码及依赖
git clone https://github.com/meolu/walle-web.git /tmp/
下载 walle-web.vendor.tgz
https://pan.baidu.com/s/1kU6gdZD
把下载的 walle-web.vendor.tgz 放入 /tmp/walle-web/
cd /tmp/walle-web/ && tar -xf wall-web.vendor.tgz
配置相关的数据库
vim config/local.php
参考:
mysql -uroot -p
CREATE DATABASE walle CHARACTER SET utf8;
CREATE USER 'walle'@'%' IDENTIFIED BY 'walle';
GRANT ALL PRIVILEGES ON walle.* TO 'walle'@'%';
docker run -d -v /tmp/walle-web:/opt/walle-web -p 80:80 nginx-php-walle
git clone https://github.com/meolu/walle-web.git /tmp/
wget -c http://192.168.1.91:5892/nginx-php-walle.tar
wget -c http://192.168.1.91:5892/walle-web.vendor.tgz
tar -xf walle-web.vendor.tgz -C /tmp/walle-web/
cd /tmp/walle-web
#配置数据库
vim config/local.php
docker load --input nginx-php-walle.tar
或者
docker load < nginx-php-walle.tar
docker run -d -v /tmp/walle-web:/opt/walle-web -p 9999:80 nginx-php-walle
【docker 里默认nginx walle name 是 walle.company.com 】
Content type
Image
Digest
Size
204.4 MB
Last updated
over 9 years ago
docker pull ayaevil/walle-cim