{"id":326156,"date":"2021-02-06T05:48:38","date_gmt":"2021-02-05T21:48:38","guid":{"rendered":"http:\/\/4563.org\/?p=326156"},"modified":"2021-02-06T05:48:38","modified_gmt":"2021-02-05T21:48:38","slug":"php-%e9%a1%b9%e7%9b%ae%e5%a6%82%e6%9e%9c%e4%bd%bf%e7%94%a8-docker-%e8%bf%9b%e8%a1%8c%e5%a4%9a%e6%9c%ba%e5%88%86%e5%b8%83%e5%bc%8f%e9%83%a8%e7%bd%b2%e6%9c%89%e4%bb%80%e4%b9%88%e5%a5%bd%e7%9a%84","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=326156","title":{"rendered":"PHP \u9879\u76ee\u5982\u679c\u4f7f\u7528 docker \u8fdb\u884c\u591a\u673a\u5206\u5e03\u5f0f\u90e8\u7f72\u6709\u4ec0\u4e48\u597d\u7684\u65b9\u6848\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  PHP \u9879\u76ee\u5982\u679c\u4f7f\u7528 docker \u8fdb\u884c\u591a\u673a\u5206\u5e03\u5f0f\u90e8\u7f72\u6709\u4ec0\u4e48\u597d\u7684\u65b9\u6848\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>RT,\u5e38\u89c4\u7684\u6269\u5bb9\u6d41\u7a0b\u57fa\u672c\u662f\u5982\u4e0b\uff1a <\/p>\n<p>1 \u3001\u66f4\u65b0\u6700\u65b0\u7684\u4e14\u6700\u7a33\u5b9a\u7684\u7248\u672c\u4ee3\u7801<br \/> 2 \u3001\u673a\u5668\u505a\u955c\u50cf<br \/> 3 \u3001\u4ece\u955c\u50cf\u4e2d\u514b\u9686\u673a\u5668<br \/> 4 \u3001\u628a\u673a\u5668\u52a0\u5230 LB <\/p>\n<p>\u4f46\u662f\u8fd9\u79cd\u6d41\u7a0b\u5b9e\u9645\u4e0a\u4e5f\u4f1a\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\uff0c\u4f8b\u5982\u6211\u6269\u5bb9\u4e86 20 \u53f0\u673a\u5668\uff0c\u8fd9\u4e2a\u65f6\u5019\u6211\u53ef\u80fd\u9700\u8981\u53bb\u7d27\u6025\u4fee\u6539\u4e00\u4e9b\u914d\u7f6e\uff0c\u8fd9\u6837\u4e00\u822c\u8981\u5982\u4f55\u9ad8\u6548\u4e14\u65e0\u8bef\u7684\u53bb\u66f4\u65b0\u8fd9\u4e9b\u914d\u7f6e\uff0c\u8fd9\u91cc\u5176\u5b9e\u4e5f\u987a\u4fbf\u95ee\u4e00\u4e0b\u591a\u673a\u914d\u7f6e\u5982\u4f55\u7ba1\u7406\u7684\u95ee\u9898\uff08\u4f8b\u5982.env \u8bfb\u6587\u4ef6\uff09\uff0c\u4f8b\u5982\u914d\u7f6e\u4e2d\u5fc3\u8fd8\u662f\u5565\uff1f\u671f\u671b\u7684\u80af\u5b9a\u662f\u4e0d\u7ba1\u4f60\u6709\u591a\u5c11\u53f0\u673a\u5668\uff0c\u6211\u53ea\u9700\u4fee\u6539\u4e00\u6b21\u914d\u7f6e\u5373\u53ef\uff0c\u6240\u6709\u673a\u5668\u7684\u914d\u7f6e\u4f1a\u81ea\u52a8\u540c\u6b65 <\/p>\n<p>\u603b\u7ed3\u4e00\u4e0b\u95ee\u9898\uff1a <\/p>\n<p>1 \u3001PHP \u9879\u76ee\u5982\u679c\u4f7f\u7528 docker \u8fdb\u884c\u591a\u673a\u5206\u5e03\u5f0f\u90e8\u7f72\u6709\u4ec0\u4e48\u597d\u7684\u65b9\u6848\uff1f<br \/> 2 \u3001\u591a\u673a\u90e8\u7f72\u914d\u7f6e\u5982\u4f55\u66f4\u597d\u7684\u7ba1\u7406\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5224094\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dapang1221 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u90fd docker \u591a\u673a\u5206\u5e03\u4e86\uff0c\u4e3a\u5565\u4e0d\u7528 k8s\uff0c\u914d\u7f6e\u6587\u4ef6\u540c\u6b65\u3001\u52a0\u5165\u8d1f\u8f7d\u5747\u8861\u90fd\u80fd\u5728 k8s \u5c42\u9762\u4e0a\u89e3\u51b3\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224095\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dapang1221 \u8001\u54e5\u6709\u65e0\u4e00\u4e9b\u6848\u4f8b\u90e8\u7f72\u7684\u770b\u770b\uff1f\u4f8b\u5982\u4e00\u4e9b\u8fd0\u7ef4\u7684\u94fe\u63a5\u5565\u7684\uff0c\u56e0\u4e3a\u6211\u592a\u4e86\u89e3 k8s \u90a3\u5957\uff0c\u4e0d\u597d\u610f\u601d\u54c8~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224096\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dapang1221 \u73b0\u5728\u6ca1\u4e0a docker \u5462\uff0c\u914d\u7f6e\u4ee5\u53ca\u90e8\u7f72\u9047\u5230\u90a3\u4e9b\u95ee\u9898\u6240\u4ee5\u624d\u60f3\u65b9\u6848\u770b\u80fd\u5426\u8fc1\u79fb\u5230 docker\uff0c\u73b0\u5728\u8fd8\u662f\u5728 Linux \u4e0a\u9762\u8dd1\u7684 nginx+php-fpm \u8dd1\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224097\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u7406\u60f3\u6a21\u578b\u662f\uff0c\u5f00\u53d1\u63a8\u9001 release \u7248\u672c\u4ee3\u7801\uff0cci \u5de5\u5177\u62c9\u53d6\u7ebf\u4e0a\u73af\u5883\u914d\u7f6e\u6784\u5efa\u955c\u50cf\uff0c\u901a\u77e5\u5230 cd \u5de5\u5177\uff0c\u81ea\u52a8\u6839\u636e\u7070\u5ea6\u53d1\u5e03\u7b56\u7565\u4e0a\u7ebf\u3002<br \/>\u8fd9\u6837\u7684\u597d\u5904\u662f\u5f00\u53d1\u4e0e\u7ebf\u4e0a\u914d\u7f6e\u89e3\u8026\uff0c\u914d\u7f6e\u5199\u5165\u955c\u50cf\u8fd9\u6837\u91cd\u65b0\u8fd0\u884c\u8fc7\u5f80\u955c\u50cf\u4e0d\u9700\u8981\u518d\u56de\u5fc6\u5f53\u65f6\u7684\u914d\u7f6e\u4e86\u3002<br \/>\u73b0\u5728\u6bd4\u8f83\u591a\u7684\u662f\u7528 apollo \u8fd9\u6837\u7684\u914d\u7f6e\u4e2d\u5fc3\u89e3\u51b3\u65b9\u6848\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224098\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u8bd5\u9a8c\u7684\u8bdd\u53ef\u4ee5\u7528 GitHub \u7684 actions \u6253\u5305\uff0c\u7136\u540e\u63a8\u9001\u5230 aliyun \u955c\u50cf\u670d\u52a1\u5668\uff0c\u7136\u540e\u7528 docker swarm \u6a21\u5f0f\u642d\u914d portainer gui \u6765\u7ba1\u7406 docker \u7684\u81ea\u52a8\u53d1\u5e03\uff0cactions \u6253\u5305\u955c\u50cf\u5b8c\u6210\u63a8\u9001 aliyun \u955c\u50cf\u4ed3\u5e93\uff0c\u63a8\u9001\u5b8c\u955c\u50cf\u4ed3\u5e93\u901a\u77e5 portainer \u53bb\u7070\u5ea6\u53d1\u5e03\uff0c\u7b80\u5355\u5b9e\u7528\uff0c\u5982\u679c\u6ca1\u6709 sql \u53d1\u5e03\u7684\u8bdd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224099\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : riverfell <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u73b0\u5728\u5728\u4e00\u5bb6 php \u540e\u7aef\u7684\u624b\u6e38\u516c\u53f8\uff0c\u6211\u4e5f\u4e0d\u662f\u5f88\u61c2\u624b\u6e38\uff0c\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u5fc5\u8981\u4e0a\u4f60\u8fd9\u79cd\u65b9\u6848\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224100\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuzhaowei55 \u963f\u6ce2\u7f57\u4f1a\u4e0d\u4f1a\u592a\u91cd\u4e86 \u4f60\u8bf4\u7684\u90a3\u5957\u5176\u5b9e\u5c31\u662f k8s CI\/CD \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224101\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuzhaowei55 \u8001\u54e5\u6709\u5b9e\u8df5\u8fc7\u8fd9\u4e2a\u6d41\u7a0b\u561b\uff1f\u6210\u672c\u4ee5\u53ca\u7ef4\u62a4\u8d77\u6765\u4f1a\u4e0d\u4f1a\u5f88\u9ad8\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224102\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @riverfell \u770b\u5177\u4f53\u60c5\u51b5\u5427 k8s \u90a3\u5957\u662f\u9700\u8981\u6210\u672c\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224103\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhuzhibin \u914d\u7f6e\u8bfb\u53d6\u53ef\u4ee5\u81ea\u5df1\u9009\u7684\uff0c\u53ef\u4ee5\u76f4\u63a5\u653e\u5165\u9879\u76ee\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5728\u955c\u50cf\u751f\u6210\u65f6\u6ce8\u5165\uff0c\u8fd8\u53ef\u4ee5\u7528 Apollo \u5728\u7ebf\u8bfb\u53d6\u3002<br \/>\u8fd9\u4e00\u5957\u548c k8s \u6ca1\u5565\u5173\u7cfb\uff0c\u4f20\u7edf\u7684\u90e8\u7f72\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\uff0c\u7b80\u5355\u4f53\u9a8c\u5c31\u7528 docker swarm + portainer \u5c31\u53ef\u4ee5\u4e86\uff0c\u5355\u673a\u5c31\u80fd\u5b9e\u73b0<br \/> k8s \u7528\u963f\u91cc\u4e91\u7684\u6309\u65f6\u6536\u8d39\u4f53\u9a8c\u4e5f\u6ca1\u6709\u5f88\u8d35\u4e09\u53f0\u673a\u5668\u7684\u4ef7\u683c\uff0c\u7528\u5b8c\u5173\u6389\u5c31\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224104\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhuzhibin \u771f\u5b9e\u8fd0\u884c\u8fc7\u7684\uff0c\u5c0f\u9879\u76ee\u8fd8\u662f\u4e0d\u9519\u7684\u3002<br \/>\u5927\u9879\u76ee\u4e00\u822c\u6709\u6d41\u7a0b\u63a7\u5236\uff0c\u4e0d\u4f1a\u8ba9\u592a\u968f\u610f\u7684\u4e0a\u7ebf\u3002<br \/>docker swarm \u7684\u8d1f\u8f7d\u81ea\u52a8\u6269\u5bb9\u6ca1\u4f53\u9a8c\u8fc7\uff0c\u90fd\u662f\u81ea\u5df1\u624b\u52a8\u8d77\u4e00\u53f0\u673a\u5668\uff0c\u521d\u59cb\u5316\u73af\u5883\u52a0\u5165 swarm \u96c6\u7fa4\uff0cswarm \u4f1a\u81ea\u52a8\u8c03\u6574\uff0ck8s \u5982\u679c\u7528\u963f\u91cc\u4e91\u7684\u8bdd\u5e94\u8be5\u53ef\u4ee5\u81ea\u52a8\u6839\u636e\u8d1f\u8f7d\u4e0a\u7ebf\u673a\u5668\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224105\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhaowei55 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhuzhibin \u57fa\u4e8e Docker Swarm \u9879\u76ee\u90e8\u7f72\u67b6\u6784: https:\/\/www.yuque.com\/where\/dib969\/bg1cff \u53ef\u4ee5\u770b\u8fd9\u91cc\uff0c\u90fd\u662f\u5df2\u7ecf\u4e0a\u7ebf\u8fd0\u884c\u4e86\u7684\uff0c\u53ef\u4ee5 tg \u6c9f\u901a\u4e00\u8d77\u5b66\u4e60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224106\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuzhaowei55 \u8c22\u8c22\u8001\u54e5 \u53ef\u4ee5\u7559\u4e2a\u8054\u7cfb\u4e0d \u4e0d\u4ecb\u610f\u5230\u65f6\u53ef\u4ee5\u8ddf\u4f60\u8bf7\u6559\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5224107\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuzhibin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuzhaowei55 \u627e\u65f6\u95f4\u5b9e\u8df5\u4e00\u4e0b\u5e94\u8be5\u5c31\u6e05\u695a\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u9879\u76ee\u5982\u679c\u4f7f\u7528 docker&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\/326156"}],"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=326156"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/326156\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326156"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}