{"id":334110,"date":"2021-02-09T02:53:33","date_gmt":"2021-02-08T18:53:33","guid":{"rendered":"http:\/\/4563.org\/?p=334110"},"modified":"2021-02-09T02:53:33","modified_gmt":"2021-02-08T18:53:33","slug":"docker-compose-%e9%83%a8%e7%bd%b2-vue-element-admin-%e6%97%b6%e5%80%99%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9%e5%85%b6%e4%b8%ad%e9%83%a8%e5%88%86%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=334110","title":{"rendered":"docker-compose \u90e8\u7f72 vue-element-admin \u65f6\u5019\u5982\u4f55\u4fee\u6539\u5176\u4e2d\u90e8\u5206\u5185\u5bb9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  docker-compose \u90e8\u7f72 vue-element-admin \u65f6\u5019\u5982\u4f55\u4fee\u6539\u5176\u4e2d\u90e8\u5206\u5185\u5bb9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : juventusryp <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u95ee\u9898\u63cf\u8ff0:<br \/> \u73b0\u6709\u4e00\u4e2a\u9879\u76ee\u524d\u7aef\u7528\u7684\u662f vue-element-admin\uff0cdocker-compose \u4e00\u952e\u90e8\u7f72\u524d\u7aef+\u540e\u7aef+mysql \u5df2\u7ecf\u6210\u529f\uff0c\u4f46\u662f\u6709\u4e00\u4e2a\u95ee\u9898\u662f\uff0c\u90e8\u7f72\u7684\u65f6\u5019\u524d\u7aef\u9879\u76ee\u4e2d\u6709\u90e8\u5206 IP \u5730\u5740\u9700\u8981\u66f4\u6539\uff0c\u6bd4\u5982\u50cf\u540e\u7aef\u53d1\u9001\u7684\u5730\u5740\u672c\u6765\u662f 127.0.0.1:5000\uff0c\u4f46\u662f\u5982\u679c\u5728\u670d\u52a1\u5668\u4e0a\u80af\u5b9a\u8981\u6539\u6210\u670d\u52a1\u5668 IP<br \/> \u7f51\u4e0a\u641c\u7d22\u4f3c\u4e4e\u4f7f\u7528 sh \u6587\u4ef6\u914d\u5408 docker \u7684\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u4fee\u6539\uff0c\u4f46\u662f\u603b\u662f\u5931\u8d25\u3002\u6c42\u95ee\u5177\u4f53\u8be5\u5982\u4f55\u53bb\u89e3\u51b3\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5240513\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzlock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u597d\u8fd8\u662f\u6539\u4e3a\u5728 docker-compose \u4e2d\u7528\u73af\u5883\u53d8\u91cf\u4f20\u503c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5240514\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e2a\u4eba\u7684\u505a\u6cd5\u662f\u5355\u72ec\u4e00\u4e2a js \u6587\u4ef6\u91cc\u653e\u8fd9\u79cd\u53d8\u91cf\uff0c\u7136\u540e\u6240\u6709\u5730\u5740\u90fd\u7528\u8fd9\u4e2a js \u91cc\u7684\u62fc\u63a5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5240515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : miv <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             docker compose \u90e8\u7f72\u5c31\u4e0d\u9700\u8981\u66f4\u65b0 ip \u4e86\uff0c\u76f4\u63a5\u7528\u5bb9\u5668\u540d\u5b57\u5c31\u597d\u3002\u6bd4\u5982\u540e\u7aef\u5bb9\u5668\u662f admin \u7aef\u53e3 8080\uff0c\u524d\u7aef\u94fe\u63a5\u540e\u7aef\u5c31\u662f admin\uff1a8080\uff0c\u8fd9\u6837\u53bb\u73a9\u3002\u54e6\u54e6\uff0c\u5bf9\u4e86\uff0c\u9700\u8981\u8bbe\u7f6e\u4f60\u7684\u670d\u52a1\u5728\u540c\u4e00\u4e2a docker network \u4e0a\u3002\u4f60\u8981\u60f3\uff0c\u90fd\u5bb9\u5668\u5316\u4e86\uff0c\u8fd8\u8981\u81ea\u5df1\u5f04 IP\uff0c\u90a3\u4e0d\u9ebb\u70e6\u6b7b\u3002\u4ea4\u7ed9 docker \u7f51\u7edc\u5c31 ojbk                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5240516\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : miv <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e8c\u671f\u4f60\u90fd docker \u90e8\u7f72\u4e86\u8fd8\u8981\u5f04 sh \u53bb\u4fee\u6539\u5bb9\u5668\uff0c\u8fd9\u4e0d\u9760\u8c31\u3002\u5e94\u8be5\u662f\u6253\u5bb9\u5668\u4e4b\u524d\u5c31\u628a\u73af\u5883\u5f04\u597d\u3002\u65e0\u8bba\u662f\u5f04\u53d8\u91cf\u8fd8\u662f\u5176\u4ed6\u65b9\u5f0f\uff0c\u90fd\u662f\u9700\u8981\u5728\u524d\u671f\u5f04\u597d\u7684\uff0c\u5bb9\u5668\u542f\u52a8\u540e\u5c31\u5c3d\u91cf\u5c11 sh \u53bb\u6539\u4e1c\u897f\u3002\u8fd9\u6837\u624d\u4f18\u96c5\u4e00\u70b9\uff0c\u91cd\u7528\u4e5f\u65b9\u4fbf                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5240517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : walpurgis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u7aef\u6253\u5305\u5b8c\u90fd\u662f\u9759\u6001\u6587\u4ef6\uff0c\u8dd1\u5728\u6d4f\u89c8\u5668\u9694\u79bb\u73af\u5883\u91cc\uff0c\u8bfb\u4e0d\u5230\u7cfb\u7edf\u53d8\u91cf\u7684\uff0c\u9664\u975e\u542f\u52a8\u7684\u65f6\u5019\u901a\u8fc7\u5916\u90e8\u811a\u672c\u628a\u73af\u5883\u53d8\u91cf\u6ce8\u5165\u5230 html \u6216 js \u91cc\u9762\uff0c\u6240\u4ee5\u4e00\u822c\u90fd\u662f\u591a\u4e2a.env \u6587\u4ef6\uff0c\u6253\u5305\u4e0d\u540c\u73af\u5883\u7528\u4e0d\u540c\u7684.env<br \/>\u53e6\u4e00\u79cd\u601d\u8def\u662f\u65e2\u7136\u7528 docker \u90e8\u7f72\u524d\u7aef\uff0c\u610f\u5473\u7740\u4f60\u80fd\u63a7\u5236\u524d\u7aef\u7684 web \u670d\u52a1\u5668\u6bd4\u5982 nginx\uff0c\u8ba9\u524d\u7aef\u7684\u8bf7\u6c42\u90fd\u53d1\u7ed9\u81ea\u5df1\uff0cnginx \u518d\u53bb\u628a\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u5b9e\u9645\u540e\u7aef\u5730\u5740\uff0c\u800c nginx \u80fd\u591f\u8bfb\u73af\u5883\u53d8\u91cf\uff0c\u4e5f\u5c31\u5b9e\u73b0\u4e86\u53d8\u91cf\u6ce8\u5165                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5240518\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : weixiangzhe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx \u4e5f\u53ef\u4ee5\u4fee\u6539 response \u7684\u5185\u5bb9\u7684\uff0c\u53ef\u4ee5\u770b\u4e00\u4e0b sub filter                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>docker-compose \u90e8\u7f72&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/334110"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334110"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/334110\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334110"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}