{"id":241,"date":"2026-05-17T14:42:08","date_gmt":"2026-05-17T06:42:08","guid":{"rendered":"https:\/\/www.anutool.com\/?p=241"},"modified":"2026-05-17T14:45:43","modified_gmt":"2026-05-17T06:45:43","slug":"%e5%ae%9d%e5%a1%94-yaml","status":"publish","type":"post","link":"https:\/\/www.anutool.com\/index.php\/2026\/05\/17\/%e5%ae%9d%e5%a1%94-yaml\/","title":{"rendered":"\u5b9d\u5854 yaml"},"content":{"rendered":"<div class=\"z0e9Qd\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\n<div data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><\/div>\n<div data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\n<div class=\"z0e9Qd\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\n<div class=\"vVRw1d\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">yaml<\/div>\n<\/div>\n<div class=\"pCTyYe\" dir=\"ltr\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\n<pre data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 14px 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><code data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">version<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"CS0cqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(129, 201, 149);\">'3.8'<\/span>\r\n\r\n<span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">services<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n  <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">btpanel<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">image<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">btpanel\/baota<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:lnmp\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">container_name<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: btpanel\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">restart<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: always\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">privileged<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"mexSqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(197, 138, 249);\">true<\/span>\r\n    <span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">network_mode<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"CS0cqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(129, 201, 149);\">\"host\"<\/span>\r\n    <span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">volumes<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n      <\/span><span class=\"ClTQqc\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u5df2\u5c07\u8def\u5f91\u5b8c\u5168\u7d81\u5b9a\u81f3\u60a8\u7684\u98db\u725b OS \u771f\u5be6\u76ee\u9304<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\r\n      - <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/vol3\/1000\/Docker\/btpanel\/wwwroot<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/wwwroot\r\n      - <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/vol3\/1000\/Docker\/btpanel\/vhost<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/server\/panel\/vhost\r\n      - <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/vol3\/1000\/Docker\/btpanel\/data<\/span><span class=\"undefined\" aria-owns=\"action-menu-parent-container\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/server\/data<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<div data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><\/div>\n<div data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><\/div>\n<div data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><\/div>\n<div class=\"vVRw1d\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 20px; font-weight: 500; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">yaml<\/div>\n<\/div>\n<div class=\"pCTyYe\" dir=\"ltr\" data-copy-service-computed-style=\"font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\n<pre data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 14px 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><code data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\"><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">version<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"CS0cqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(129, 201, 149);\">'3.8'<\/span>\r\n\r\n<span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">services<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n  <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">btpanel<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">image<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">btpanel\/baota<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:lnmp        <\/span><span class=\"ClTQqc\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u4f7f\u7528\u5b98\u65b9\u6700\u65b0\u6574\u5408\u7684 LNMP \u93e1\u50cf<\/span>\r\n    <span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">container_name<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: btpanel\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">restart<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: always\r\n    <\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">privileged<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"mexSqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(197, 138, 249);\">true<\/span>                 <span class=\"ClTQqc\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u5fc5\u9808\u7d66\u4e88\u9ad8\u7d1a\u6b0a\u9650\uff0c\u5426\u5247\u5bf6\u5854\u5167\u90e8\u5206\u670d\u52d9\u7121\u6cd5\u904b\u4f5c<\/span>\r\n    <span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">network_mode<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">: <\/span><span class=\"CS0cqb\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(129, 201, 149);\">\"host\"<\/span>             <span class=\"ClTQqc\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u63a8\u85a6 host \u6a21\u5f0f\uff0c\u8b93\u5bf6\u5854\u80fd\u76f4\u63a5\u7ba1\u7406\u6240\u9700\u7684\u6240\u6709\u57e0\u53e3<\/span>\r\n    <span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">volumes<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\r\n      - .<\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/wwwroot<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/wwwroot       <\/span><span class=\"ClTQqc\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u7db2\u7ad9\u6839\u76ee\u9304\u639b\u8f09\uff08\u6578\u64da\u6301\u4e45\u5316\uff09<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">\r\n      - .<\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/vhost<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/server\/panel\/vhost\r\n      - .<\/span><span class=\"Ff1zF\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(250, 144, 62);\">\/data<\/span><span class=\"undefined\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(230, 232, 240);\">:\/www\/server\/data      <\/span><span class=\"ClTQqc\" aria-owns=\"action-menu-parent-container\" data-copy-service-computed-style=\"font-family: monospace; font-size: 14px; font-weight: 400; margin: 0px; text-decoration: none; border-bottom: 0px rgb(154, 160, 166);\"># \u5bf6\u5854\u6578\u64da\u5eab\u8207\u914d\u7f6e\u6301\u4e45\u5316<\/span><\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>yaml version: '3.8' services: btpanel: image: btpanel\/b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-241","post","type-post","status-publish","format-standard","hentry","category-yaml"],"_links":{"self":[{"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":2,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/posts\/241\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anutool.com\/index.php\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}