{"id":42036,"date":"2025-06-06T07:10:55","date_gmt":"2025-06-05T23:10:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42036.html"},"modified":"2025-06-06T07:10:55","modified_gmt":"2025-06-05T23:10:55","slug":"%e3%80%902025%e3%80%91%e4%bd%bf%e7%94%a8docker-compose%e4%b8%80%e9%94%ae%e9%83%a8%e7%bd%b2%e9%a1%b9%e7%9b%ae%e5%88%b0%e6%9c%8d%e5%8a%a1%e5%99%a84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42036.html","title":{"rendered":"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4)"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55&#x1f4bb;<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\n<ul>\n<li>\u4e00\u3001\u90e8\u7f72\u51c6\u5907<\/li>\n<li>\u4e8c\u3001\u672c\u5730idea\u914d\u7f6edocker\u548cdocker compose\u6267\u884c\u5668<\/li>\n<li>\u4e09\u3001\u7f16\u5199docker-compose.yml\u6587\u4ef6<\/li>\n<li>\u56db\u3001\u6267\u884c\u542f\u52a8<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u524d\u8a00<\/h2>\n<p>\u8be5\u7bc7\u6587\u7ae0\u4e3b\u8981\u662f\u4f7f\u7528idea\u901a\u8fc7docker-compose.yml\u6784\u5efa\u5bb9\u5668\u96c6\u5408\u5e76\u4e14\u8fdb\u884c\u7edf\u4e00\u7ba1\u7406\u66f4\u65b0<\/p>\n<p>\u8be5\u4e13\u680f\u4e3b\u8981\u4e3a\u4ecb\u7ecd\u901a\u8fc7docker compose\u5b9e\u73b0\u5bb9\u5668\u7f16\u6392\u90e8\u7f72<\/p>\n<ul>\n<li>&#x1f345;\u30102025\u3011\u5feb\u901f\u90e8\u7f72\u5b89\u88c5docker\u4ee5\u53ca\u9879\u76ee\u642d\u5efa\u6240\u9700\u8981\u7684\u57fa\u7840\u73af\u5883(mysql\u3001redis\u3001nginx\u3001nacos)&#xff08;1&#xff09;<\/li>\n<li>&#x1f353;\u30102025\u3011harbor\u4ed3\u5e93\u642d\u5efa\u4e0a\u4f20\u4e0b\u8f7d&#xff08;2&#xff09;<\/li>\n<li> &#x1f347;\u30102025\u3011\u4f7f\u7528idea\u7ed3\u5408docker\u63d2\u4ef6\u4e00\u952e\u53d1\u5e03\u9879\u76ee\u5230harbor\u4ed3\u5e93(3)<\/li>\n<li>&#x1f952;\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4)<\/li>\n<\/ul>\n<h3>\u4e00\u3001\u90e8\u7f72\u51c6\u5907<\/h3>\n<p>\u56e0\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u76f4\u63a5\u90e8\u7f72\u4f1a\u51fa\u73b0\u8d44\u6e90\u9650\u5236\u95ee\u9898&#xff0c;\u9700\u8981\u5728\u90e8\u7f72\u9879\u76ee\u7684\u670d\u52a1\u5668\u7684docker\u6dfb\u52a0\u4e0b\u9762\u914d\u7f6e<\/p>\n<p>vi \/usr\/lib\/systemd\/system\/docker.service<\/p>\n<p>\u627e\u5230ExecStart&#061;\u7684\u4f4d\u7f6e&#xff0c;\u5728\u540e\u9762\u6dfb\u52a0\u5bf9\u5e94\u5185\u5bb9<\/p>\n<p>&#8211;default-ulimit <span class=\"token assign-left variable\">nofile<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">65536<\/span>:65536     &#8211;default-ulimit <span class=\"token assign-left variable\">nproc<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">60000<\/span>:60000<\/p>\n<h3>\u4e8c\u3001\u672c\u5730idea\u914d\u7f6edocker\u548cdocker compose\u6267\u884c\u5668<\/h3>\n<p>\u5982\u679c\u672c\u5730\u5b89\u88c5\u4e86docker\u5219\u8df3\u8fc7\u8fd9\u4e00\u6b65<\/p>\n<p>docker&#xff1a;https:\/\/download.docker.com\/win\/static\/stable\/x86_64\/<\/p>\n<p>docker compose&#xff1a;https:\/\/github.com\/docker\/compose\/releases<\/p>\n<p>\u628a\u4e0b\u8f7d\u597d\u7684.exe\u6587\u4ef6\u653e\u5165\u6587\u4ef6\u5939\u914d\u7f6e\u597d\u5bf9\u5e94\u7684\u6307\u5b9a\u5730\u5740 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231048-684223f843003.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5982\u679c\u672c\u6765\u672c\u5730\u5c31\u5b89\u88c5\u4e86docker\u5219\u4e0d\u7528\u5904\u7406 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231048-684223f8961af.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e09\u3001\u7f16\u5199docker-compose.yml\u6587\u4ef6<\/h3>\n<ul>\n<li>\n<p>\u6267\u884c\u5728\u9879\u76ee\u8ddf\u76ee\u5f55\u521b\u5efa\u4e00\u4e2adocker compose\u6587\u4ef6 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231049-684223f9424cf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u7f16\u5199docker-compose.yml\u6587\u4ef6<\/p>\n<p> <span class=\"token key atrule\">version<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#039;3.8&#039;<\/span>  <span class=\"token comment\"># Docker Compose \u6587\u4ef6\u7248\u672c<\/span><\/p>\n<p><span class=\"token key atrule\">services<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">service-gateway<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> 10.37.129.2<span class=\"token punctuation\">:<\/span>5000\/ssyx\/service<span class=\"token punctuation\">&#8211;<\/span>gateway<span class=\"token punctuation\">:<\/span>1.0.1  <span class=\"token comment\"># \u66ff\u6362\u4e3a\u4f60\u7684 Harbor \u5730\u5740\u548c\u955c\u50cf\u6807\u7b7e<\/span><br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> service<span class=\"token punctuation\">&#8211;<\/span>gateway  <span class=\"token comment\">#\u5bb9\u5668\u540d\u79f0<\/span><br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#034;8000:8000&#034;<\/span>  <span class=\"token comment\"># \u6620\u5c04\u7aef\u53e3&#xff0c;\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539&#xff08;\u670d\u52a1\u5668\u7aef\u53e3:\u5bb9\u5668\u7aef\u53e3&#xff09;<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token comment\"># \u5982\u679c\u4f60\u7684\u670d\u52a1\u9700\u8981\u73af\u5883\u53d8\u91cf&#xff0c;\u5728\u8fd9\u91cc\u914d\u7f6e<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SPRING_PROFILES_ACTIVE<span class=\"token punctuation\">:<\/span>dev  <span class=\"token comment\">#\u6307\u5b9adev<\/span><br \/>\n    <span class=\"token key atrule\">volumes<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token comment\"># \u5982\u679c\u6709\u6302\u8f7d\u76ee\u5f55&#xff0c;\u5728\u8fd9\u91cc\u5b9a\u4e49,\u914d\u7f6e\u65e5\u5fd7\u7684\u6302\u8f7d\u76ee\u5f55\u5373\u53ef<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> \/home\/docker\/docker<span class=\"token punctuation\">&#8211;<\/span>logs\/ssyx\/service<span class=\"token punctuation\">&#8211;<\/span>gateway<span class=\"token punctuation\">:<\/span>\/app\/logs\/service<span class=\"token punctuation\">&#8211;<\/span>gateway<br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always <span class=\"token comment\"># \u63a8\u8350\u8bbe\u7f6e&#xff0c;\u670d\u52a1\u610f\u5916\u505c\u6b62\u540e\u81ea\u52a8\u91cd\u542f<\/span><br \/>\n    <span class=\"token comment\"># depends_on:  # \u5982\u679c\u6709\u4f9d\u8d56\u7684\u670d\u52a1&#xff0c;\u6bd4\u5982\u6570\u636e\u5e93&#xff0c;\u5728\u8fd9\u91cc\u5b9a\u4e49<\/span><br \/>\n    <span class=\"token comment\">#   &#8211; erp<\/span><\/p>\n<p>  <span class=\"token key atrule\">service-sys<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">image<\/span><span class=\"token punctuation\">:<\/span> 10.37.129.2<span class=\"token punctuation\">:<\/span>5000\/ssyx\/service<span class=\"token punctuation\">&#8211;<\/span>sys<span class=\"token punctuation\">:<\/span>1.0.1<br \/>\n    <span class=\"token key atrule\">container_name<\/span><span class=\"token punctuation\">:<\/span> service<span class=\"token punctuation\">&#8211;<\/span>sys  <span class=\"token comment\">#\u5bb9\u5668\u540d\u79f0<\/span><br \/>\n    <span class=\"token key atrule\">ports<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> <span class=\"token string\">&#034;8001:8001&#034;<\/span><br \/>\n    <span class=\"token key atrule\">environment<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> SPRING_PROFILES_ACTIVE<span class=\"token punctuation\">:<\/span>dev<br \/>\n    <span class=\"token key atrule\">volumes<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token punctuation\">&#8211;<\/span> \/home\/docker\/docker<span class=\"token punctuation\">&#8211;<\/span>logs\/ssyx\/service<span class=\"token punctuation\">&#8211;<\/span>gateway<span class=\"token punctuation\">:<\/span>\/app\/logs\/service<span class=\"token punctuation\">&#8211;<\/span>gateway<br \/>\n    <span class=\"token key atrule\">restart<\/span><span class=\"token punctuation\">:<\/span> always<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u542f\u52a8\u670d\u52a1 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231049-684223f975a27.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231050-684223fa77ce4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u26a0\ufe0f\u6ce8\u610f&#xff1a;\u9700\u8981\u914d\u7f6e\u4e00\u4e0bdown\u5220\u9664\u5bb9\u5668\u65f6\u628a\u672c\u5730\u955c\u50cf\u4e5f\u5220\u9664\u6389&#xff0c;\u56e0\u4e3a\u6211\u4eec\u6bcf\u6b21\u66f4\u65b0\u4ee3\u7801\u90fd\u9700\u8981\u5230\u8fdc\u7a0b\u4ed3\u5e93\u53bb\u62c9\u53d6\u6700\u65b0\u7684\u955c\u50cf&#xff0c;\u5982\u679c\u672c\u5730\u4e0d\u5220\u9664\u7684\u8bdd&#xff0c;\u5c31\u4e0d\u4f1a\u6bcf\u6b21\u53bb\u8fdc\u7a0b\u4ed3\u5e93\u62c9\u53d6\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231051-684223fb8d05f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<\/ul>\n<h3>\u56db\u3001\u6267\u884c\u542f\u52a8<\/h3>\n<p>\u521b\u5efa\u597d\u4e4b\u540e\u53ef\u4ee5\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u6267\u884c&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u70b9\u51fbdocker-compose.yml\u7684\u542f\u52a8\u6807\u8bc6\u542f\u52a8\u521b\u5efa\u5355\u4e2a\u670d\u52a1\u6216\u8005\u591a\u4e2a\u5bb9\u5668 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231052-684223fc83127.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u542f\u52a8\u597d\u4e4b\u540e\u5219\u53ef\u4ee5\u901a\u8fc7\u65e5\u5fd7\u67e5\u770b\u548c\u7ba1\u7406docker\u5bb9\u5668 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231053-684223fd50c68.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f7f\u7528IDEA\u7ed3\u5408Docker Compose\u5b9e\u73b0\u5bb9\u5668\u7f16\u6392\u90e8\u7f72\u7684\u65b9\u6cd5\u3002\u9996\u5148\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u914d\u7f6eDocker\u7684ulimit\u53c2\u6570\uff0c\u89e3\u51b3\u8d44\u6e90\u9650\u5236\u95ee\u9898\u3002\u5176\u6b21\u8bb2\u89e3\u4e86\u672c\u5730IDEA\u914d\u7f6eDocker\u548cDocker Compose\u6267\u884c\u5668\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u4e0b\u8f7d\u5b89\u88c5\u548c\u8def\u5f84\u8bbe\u7f6e\u3002\u91cd\u70b9\u6f14\u793a\u4e86\u5982\u4f55\u7f16\u5199docker-compose.yml\u6587\u4ef6\uff0c\u5b9a\u4e49\u670d\u52a1\u955c\u50cf\u3001\u7aef\u53e3\u6620\u5c04\u3001\u73af\u5883\u53d8\u91cf\u7b49\u914d\u7f6e\uff0c\u5e76\u8bf4\u660eIDEA\u4e2d\u542f\u52a8\u670d\u52a1\u7684\u8bbe\u7f6e\u65b9\u6cd5\u3002\u6700\u540e\u6307\u5bfc\u901a\u8fc7IDEA\u754c\u9762\u6267\u884c\u5bb9\u5668\u542f\u52a8\uff0c\u5e76\u67e5\u770b\u7ba1\u7406\u5bb9\u5668\u65e5\u5fd7\u3002\u8be5\u65b9\u6848\u5b9e\u73b0\u4e86\u9879\u76ee\u7684\u4e00\u952e\u90e8\u7f72\u548c\u7edf\u4e00\u7ba1\u7406\uff0c\u9002\u7528\u4e8e\u591a\u5bb9\u5668\u5e94\u7528\u7684\u81ea\u52a8\u5316<\/p>\n","protected":false},"author":2,"featured_media":42028,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,99,526,250,1070],"topic":[],"class_list":["post-42036","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-java","tag-526","tag-250","tag-1070"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/42036.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f7f\u7528IDEA\u7ed3\u5408Docker Compose\u5b9e\u73b0\u5bb9\u5668\u7f16\u6392\u90e8\u7f72\u7684\u65b9\u6cd5\u3002\u9996\u5148\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u914d\u7f6eDocker\u7684ulimit\u53c2\u6570\uff0c\u89e3\u51b3\u8d44\u6e90\u9650\u5236\u95ee\u9898\u3002\u5176\u6b21\u8bb2\u89e3\u4e86\u672c\u5730IDEA\u914d\u7f6eDocker\u548cDocker Compose\u6267\u884c\u5668\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u4e0b\u8f7d\u5b89\u88c5\u548c\u8def\u5f84\u8bbe\u7f6e\u3002\u91cd\u70b9\u6f14\u793a\u4e86\u5982\u4f55\u7f16\u5199docker-compose.yml\u6587\u4ef6\uff0c\u5b9a\u4e49\u670d\u52a1\u955c\u50cf\u3001\u7aef\u53e3\u6620\u5c04\u3001\u73af\u5883\u53d8\u91cf\u7b49\u914d\u7f6e\uff0c\u5e76\u8bf4\u660eIDEA\u4e2d\u542f\u52a8\u670d\u52a1\u7684\u8bbe\u7f6e\u65b9\u6cd5\u3002\u6700\u540e\u6307\u5bfc\u901a\u8fc7IDEA\u754c\u9762\u6267\u884c\u5bb9\u5668\u542f\u52a8\uff0c\u5e76\u67e5\u770b\u7ba1\u7406\u5bb9\u5668\u65e5\u5fd7\u3002\u8be5\u65b9\u6848\u5b9e\u73b0\u4e86\u9879\u76ee\u7684\u4e00\u952e\u90e8\u7f72\u548c\u7edf\u4e00\u7ba1\u7406\uff0c\u9002\u7528\u4e8e\u591a\u5bb9\u5668\u5e94\u7528\u7684\u81ea\u52a8\u5316\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42036.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-05T23:10:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231048-684223f843003.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42036.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42036.html\",\"name\":\"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-05T23:10:55+00:00\",\"dateModified\":\"2025-06-05T23:10:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42036.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42036.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42036.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/42036.html","og_locale":"zh_CN","og_type":"article","og_title":"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f7f\u7528IDEA\u7ed3\u5408Docker Compose\u5b9e\u73b0\u5bb9\u5668\u7f16\u6392\u90e8\u7f72\u7684\u65b9\u6cd5\u3002\u9996\u5148\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u914d\u7f6eDocker\u7684ulimit\u53c2\u6570\uff0c\u89e3\u51b3\u8d44\u6e90\u9650\u5236\u95ee\u9898\u3002\u5176\u6b21\u8bb2\u89e3\u4e86\u672c\u5730IDEA\u914d\u7f6eDocker\u548cDocker Compose\u6267\u884c\u5668\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u4e0b\u8f7d\u5b89\u88c5\u548c\u8def\u5f84\u8bbe\u7f6e\u3002\u91cd\u70b9\u6f14\u793a\u4e86\u5982\u4f55\u7f16\u5199docker-compose.yml\u6587\u4ef6\uff0c\u5b9a\u4e49\u670d\u52a1\u955c\u50cf\u3001\u7aef\u53e3\u6620\u5c04\u3001\u73af\u5883\u53d8\u91cf\u7b49\u914d\u7f6e\uff0c\u5e76\u8bf4\u660eIDEA\u4e2d\u542f\u52a8\u670d\u52a1\u7684\u8bbe\u7f6e\u65b9\u6cd5\u3002\u6700\u540e\u6307\u5bfc\u901a\u8fc7IDEA\u754c\u9762\u6267\u884c\u5bb9\u5668\u542f\u52a8\uff0c\u5e76\u67e5\u770b\u7ba1\u7406\u5bb9\u5668\u65e5\u5fd7\u3002\u8be5\u65b9\u6848\u5b9e\u73b0\u4e86\u9879\u76ee\u7684\u4e00\u952e\u90e8\u7f72\u548c\u7edf\u4e00\u7ba1\u7406\uff0c\u9002\u7528\u4e8e\u591a\u5bb9\u5668\u5e94\u7528\u7684\u81ea\u52a8\u5316","og_url":"https:\/\/www.wsisp.com\/helps\/42036.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-05T23:10:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250605231048-684223f843003.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42036.html","url":"https:\/\/www.wsisp.com\/helps\/42036.html","name":"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-05T23:10:55+00:00","dateModified":"2025-06-05T23:10:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42036.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42036.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42036.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u30102025\u3011\u4f7f\u7528docker compose\u4e00\u952e\u90e8\u7f72\u9879\u76ee\u5230\u670d\u52a1\u5668(4)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=42036"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42036\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/42028"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42036"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}