Skip to content

Docker+ThinkPHP5+Vue+前后端分离开发模式Jenskins自动部署,全家桶集合

Notifications You must be signed in to change notification settings

gtsigner/docker-thinkphp5-vue-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose的lnmp环境编排实战

开发+线上环境

环境: Redis3.1+PHP5.6-fpm+Nginx+Mysql5.7

Copyright@ Godtoy

Usage

1.git clone .

2.docker-compose up --build

第一次需要手动导入测试数据

1.查看docker-compose 网络

$docker network ls
NETWORK ID          NAME                  DRIVER              SCOPE
eb94c90c4aae        30goinghome_default   bridge              local
70e90a580013        bridge                bridge              local
92abe5bb5b5e        host                  host                local
4e85e7e6b5f3        none                  null                local

2.查看backup真实路径

$ pwd
/c/Users/zhaojunlike/Documents/WorkSpace/PHP/30-going-home

3.导入默认得数据

//启动一个迁移数据容器

$ docker run -it --link mysql-db:mysql --network 30goinghome_default -v /c/Users/zhaojunlike/Documents/WorkSpace/PHP/30-going-home/data/backup:/data/backup:ro --rm mysql:5.7 sh -c 'exec mysql -h"mysql" -P"3306" -uroot -p"zhaojun" packag
e_v1</data/backup/data-default.sql'

开发

LICENSE

About

Docker+ThinkPHP5+Vue+前后端分离开发模式Jenskins自动部署,全家桶集合

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published