{"id":55732,"date":"2025-08-14T07:36:41","date_gmt":"2025-08-13T23:36:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55732.html"},"modified":"2025-08-14T07:36:41","modified_gmt":"2025-08-13T23:36:41","slug":"%e6%9c%ac%e5%9c%b0%e9%80%9a%e8%bf%87-docker-compose-%e9%83%a8%e7%bd%b2-dify%ef%bc%88%e7%a4%be%e5%8c%ba%e7%89%88%ef%bc%89%ef%bc%8c%e5%b9%b6%e9%9b%86%e6%88%90%e6%9c%ac%e5%9c%b0-qwen3-%e5%a4%a7%e6%a8%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55732.html","title":{"rendered":"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>1. \u73af\u5883\u51c6\u5907<\/li>\n<li>2. \u83b7\u53d6 Dify \u6e90\u7801<\/li>\n<li>3. \u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/li>\n<li>4. \u542f\u52a8\u670d\u52a1<\/li>\n<li>5. \u9996\u6b21\u8bbf\u95ee\u4e0e\u7ba1\u7406\u5458\u521d\u59cb\u5316<\/li>\n<li>6. \u96c6\u6210 Qwen3 \u6a21\u578b<\/li>\n<li>7. \u5e38\u7528\u8fd0\u7ef4\u64cd\u4f5c<\/li>\n<li>8. \u5e38\u89c1\u95ee\u9898\u4e0e\u5efa\u8bae<\/li>\n<li>8. \u5b89\u88c5\u4e2d\u9047\u5230\u7684\u95ee\u9898<\/li>\n<li>\u9644\u5f55&#xff1a;\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/li>\n<li>\u53c2\u8003<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p> \u8fd9\u662f\u4e00\u4efd\u57fa\u4e8e\u5b98\u65b9\u6587\u6863\u68b3\u7406\u7684\u672c\u5730\u90e8\u7f72\u8bb0\u5f55&#xff0c;\u76ee\u6807\u662f\u7528\u6700\u5c11\u7684\u6b65\u9aa4\u628a Dify \u5728\u672c\u673a\u8dd1\u8d77\u6765&#xff0c;\u7528\u4e8e\u5b66\u4e60\u4e0e\u529f\u80fd\u4f53\u9a8c\u3002\u6587\u4e2d\u793a\u4f8b\u547d\u4ee4\u4ee5 macOS\/Linux \u4e3a\u4e3b&#xff0c;Windows \u53ef\u7528 WSL2 \u73af\u5883\u914d\u5408 Docker Desktop\u3002<\/p>\n<hr \/>\n<h4>1. \u73af\u5883\u51c6\u5907<\/h4>\n<ul>\n<li>\u57fa\u672c\u8981\u6c42&#xff08;\u6700\u4f4e&#xff09;&#xff1a;CPU \u2265 2 \u6838\u3001\u5185\u5b58 \u2265 4 GiB\u3002<\/li>\n<li>macOS&#xff08;\u63a8\u8350 Docker Desktop&#xff09;&#xff1a;\u5728 Docker Desktop \u8bbe\u7f6e VM \u81f3\u5c11 2 vCPU\u30018 GiB \u5185\u5b58&#xff0c;\u5426\u5219\u53ef\u80fd\u542f\u52a8\u5931\u8d25\u3002<\/li>\n<li>Linux&#xff1a;\u786e\u4fdd Docker \u2265 19.03&#xff0c;Docker Compose \u2265 1.28&#xff08;\u6216\u4f7f\u7528 Compose V2&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5efa\u8bae\u5148\u68c0\u67e5 Docker\/Compose \u7248\u672c&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose version  <span class=\"token comment\"># Compose V2&#xff08;\u63a8\u8350&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u82e5\u4e3a Compose V1&#xff0c;\u5219\u4f7f\u7528 &#096;docker-compose version&#096;<\/span><\/p>\n<hr \/>\n<h4>2. \u83b7\u53d6 Dify \u6e90\u7801<\/h4>\n<p>\u6309\u5b98\u65b9\u5efa\u8bae&#xff0c;\u514b\u9686\u6700\u65b0\u53d1\u5e03\u7248\u672c\u7684\u5206\u652f&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone <span class=\"token parameter variable\">&#8211;branch<\/span> <span class=\"token string\">&#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-s<\/span> https:\/\/api.github.com\/repos\/langgenius\/dify\/releases\/latest <span class=\"token operator\">|<\/span> jq <span class=\"token parameter variable\">-r<\/span> .tag_name<span class=\"token variable\">)<\/span><\/span>&#034;<\/span> https:\/\/github.com\/langgenius\/dify.git<\/p>\n<p>\u8fdb\u5165 Docker \u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> dify\/docker<\/p>\n<hr \/>\n<h4>3. \u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/h4>\n<p>\u590d\u5236\u793a\u4f8b\u73af\u5883\u914d\u7f6e\u4e3a\u5b9e\u9645\u4f7f\u7528\u7684 .env \u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">cp<\/span> .env.example .env<\/p>\n<p>\u9996\u6b21\u4f7f\u7528\u53ef\u4ee5\u5148\u4fdd\u6301\u9ed8\u8ba4\u914d\u7f6e&#xff1b;\u5982\u9700\u81ea\u5b9a\u4e49\u7aef\u53e3\u3001\u6301\u4e45\u5316\u5377\u3001\u5916\u90e8\u5b58\u50a8\u7b49&#xff0c;\u540e\u7eed\u518d\u6539\u52a8\u5e76\u91cd\u542f\u3002<\/p>\n<hr \/>\n<h4>4. \u542f\u52a8\u670d\u52a1<\/h4>\n<p>\u6839\u636e\u672c\u673a Docker Compose \u7248\u672c\u9009\u62e9\u5bf9\u5e94\u547d\u4ee4&#xff1a;<\/p>\n<ul>\n<li>Compose V2&#xff08;\u63a8\u8350&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>\u542f\u52a8\u540e&#xff0c;\u68c0\u67e5\u5bb9\u5668\u72b6\u6001&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> compose <span class=\"token function\">ps<\/span><\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b\u53ef\u4ee5\u770b\u5230\u6838\u5fc3\u670d\u52a1\u4e0e\u4f9d\u8d56\u7ec4\u4ef6\u5df2\u5c31\u7eea&#xff1a;<\/p>\n<ul>\n<li>\u6838\u5fc3\u670d\u52a1&#xff1a;api \/ worker \/ web<\/li>\n<li>\u4f9d\u8d56\u7ec4\u4ef6&#xff1a;weaviate \/ db \/ redis \/ nginx \/ ssrf_proxy \/ sandbox<\/li>\n<\/ul>\n<p>docker compose ps \u8fd0\u884c\u72b6\u6001 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233633-689d21818b143.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h4>5. \u9996\u6b21\u8bbf\u95ee\u4e0e\u7ba1\u7406\u5458\u521d\u59cb\u5316<\/h4>\n<p>\u9996\u6b21\u8bbf\u95ee\u9700\u5148\u8fdb\u884c\u7ba1\u7406\u5458\u521d\u59cb\u5316&#xff1a;<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u5728\u542f\u52a8\u4e4b\u524d\u4fee\u6539\u4e86 .env \u6587\u4ef6\u4e2d\u7684 EXPOSE_NGINX_PORT \u6216\u8005 EXPOSE_NGINX_SSL_PORT \u5e94\u8be5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539 url&#xff0c;\u6211\u8fd9\u91cc\u4fee\u6539\u4e86 EXPOSE_NGINX_PORT&#061;8091 \u6240\u6709\u4f7f\u7528\u4e86\u5982\u4e0b url<\/p>\n<p>http:\/\/localhost:8091\/install<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233633-689d2181bc5f8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h4>6. \u96c6\u6210 Qwen3 \u6a21\u578b<\/h4>\n<p>1&#xff09;\u9996\u5148\u4e0b\u8f7d ollama \u63d2\u4ef6(\u8fd9\u91cc\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u4e86) <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233635-689d2183d1904.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6dfb\u52a0 Qwen3 \u5927\u6a21\u578b(\u8fd9\u91cc\u7684\u5927\u6a21\u578b\u540d\u79f0\u5fc5\u987b\u4e0e\u5b9e\u9645\u6a21\u578b\u7684\u540d\u79f0\u76f8\u540c&#xff0c;\u4e0d\u662f\u968f\u4fbf\u5b9a\u4e49\u7684) <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233638-689d218683092.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h4>7. \u5e38\u7528\u8fd0\u7ef4\u64cd\u4f5c<\/h4>\n<li>\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c&#xff08;\u5728 dify\/docker \u76ee\u5f55\u4e2d&#xff09;&#xff1a;<\/li>\n<p><span class=\"token function\">docker<\/span> compose down<br \/>\n<span class=\"token function\">git<\/span> pull origin main<br \/>\n<span class=\"token function\">docker<\/span> compose pull<br \/>\n<span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<li>\u540c\u6b65\u73af\u5883\u53d8\u91cf&#xff08;\u91cd\u8981&#xff09;&#xff1a;<\/li>\n<p>\u5f53\u4e0a\u6e38\u793a\u4f8b\u6587\u4ef6 .env.example \u6709\u66f4\u65b0\u65f6&#xff0c;\u9700\u6bd4\u5bf9\u5e76\u540c\u6b65\u672c\u5730 .env \u7684\u65b0\u589e\u6216\u53d8\u66f4\u9879&#xff0c;\u907f\u514d\u56e0\u7f3a\u5931\u914d\u7f6e\u5bfc\u81f4\u670d\u52a1\u5f02\u5e38\u3002<\/p>\n<li>\u81ea\u5b9a\u4e49\u914d\u7f6e\u5e76\u91cd\u542f&#xff1a;<\/li>\n<p><span class=\"token comment\"># \u4fee\u6539 .env \u540e<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose down<br \/>\n<span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<li>\u67e5\u770b\u65e5\u5fd7\u4e0e\u6392\u969c&#xff1a;<\/li>\n<p><span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span>          <span class=\"token comment\"># \u8ddf\u968f\u67e5\u770b\u6240\u6709\u670d\u52a1\u65e5\u5fd7<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span> api      <span class=\"token comment\"># \u4ec5\u770b api \u670d\u52a1<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span> web      <span class=\"token comment\"># \u4ec5\u770b web \u670d\u52a1<\/span><\/p>\n<li>\u505c\u6b62\u4e0e\u6e05\u7406&#xff1a;<\/li>\n<p><span class=\"token function\">docker<\/span> compose down             <span class=\"token comment\"># \u505c\u6b62\u5e76\u79fb\u9664\u5bb9\u5668<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose down <span class=\"token parameter variable\">-v<\/span>          <span class=\"token comment\"># \u540c\u65f6\u79fb\u9664\u5377&#xff08;\u8c28\u614e&#xff09;<\/span><\/p>\n<hr \/>\n<h4>8. \u5e38\u89c1\u95ee\u9898\u4e0e\u5efa\u8bae<\/h4>\n<ul>\n<li>\u8d44\u6e90\u4e0d\u8db3\u5bfc\u81f4\u542f\u52a8\u5931\u8d25&#xff1a;\u589e\u5927 Docker Desktop \u7684 vCPU\/\u5185\u5b58&#xff0c;\u53c2\u8003\u524d\u8ff0\u5efa\u8bae&#xff08;\u81f3\u5c11 2 vCPU\u30018 GiB \u5185\u5b58\u66f4\u7a33\u59a5&#xff09;\u3002<\/li>\n<li>\u7aef\u53e3\u51b2\u7a81&#xff1a;\u5982\u672c\u673a\u5df2\u6709 80\/443\/5432\/6379 \u7b49\u5360\u7528&#xff0c;\u8c03\u6574 .env \u6216\u76f8\u5173\u670d\u52a1\u6620\u5c04\u7aef\u53e3\u540e\u91cd\u542f\u3002<\/li>\n<li>\u9996\u6b21\u955c\u50cf\u62c9\u53d6\u8f83\u6162&#xff1a;\u53ef\u5207\u6362\u955c\u50cf\u6e90\u6216\u9884\u5148\u624b\u52a8 docker compose pull\u3002<\/li>\n<li>\u670d\u52a1\u5065\u5eb7\u68c0\u67e5\u672a\u901a\u8fc7&#xff1a;\u5148\u67e5\u770b\u5bf9\u5e94\u670d\u52a1\u65e5\u5fd7&#xff0c;\u518d\u786e\u8ba4 .env \u914d\u7f6e&#xff08;\u4f8b\u5982\u6570\u636e\u5e93\u3001\u5411\u91cf\u5e93\u7b49\u73af\u5883\u53d8\u91cf&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>8. \u5b89\u88c5\u4e2d\u9047\u5230\u7684\u95ee\u9898<\/h4>\n<p>1&#xff09;\u56e0\u4e3a\u6211\u672c\u5730\u7684 80 \u7aef\u53e3\u88ab\u5360\u7528&#xff0c;\u6240\u4ee5\u4fee\u6539\u4e86 EXPOSE_NGINX_PORT \u7684\u9ed8\u8ba4\u7aef\u53e3 2&#xff09;\u7531\u4e8e\u7f51\u7edc\u539f\u56e0&#xff0c;\u5728\u5b89\u88c5 ollama \u63d2\u4ef6\u7684\u65f6\u5019&#xff0c;\u65e0\u6cd5\u5b89\u88c5\u6210\u529f<\/p>\n<p><span class=\"token function\">docker<\/span> compose logs &#8211;no-log-prefix plugin_daemon <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-n<\/span> <span class=\"token number\">200<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">cat<\/span><\/p>\n<p>\u8f93\u51fa\u65e5\u5fd7<\/p>\n<p>2025-08-11 15:04:22.763 ERROR [Dummy-9] [base.py:211] &#8211; Error in stream reponse for plugin {&#039;code&#039;: -500, &#039;message&#039;: &#039;{&#034;message&#034;:&#034;no available node, plugin not found&#034;,&#034;error_type&#034;:&#034;PluginDaemonInternalServerError&#034;,&#034;args&#034;:null}&#039;, &#039;data&#039;: None}<br \/>\n2025-08-11 15:04:22.764 ERROR [Dummy-9] [app.py:875] &#8211; Exception on \/console\/api\/workspaces\/current\/model-providers\/langgenius\/ollama\/ollama\/models [POST]<br \/>\nTraceback (most recent call last):<br \/>\n  File &#034;\/app\/api\/.venv\/lib\/python3.12\/site-packages\/flask\/app.py&#034;, line 917, in full_dispatch_request<br \/>\n    rv &#061; self.dispatch_request()<br \/>\n         ^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/.venv\/lib\/python3.12\/site-packages\/flask\/app.py&#034;, line 902, in dispatch_request<br \/>\n    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/.venv\/lib\/python3.12\/site-packages\/flask_restful\/__init__.py&#034;, line 489, in wrapper<br \/>\n    resp &#061; resource(*args, **kwargs)<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/.venv\/lib\/python3.12\/site-packages\/flask\/views.py&#034;, line 110, in view<br \/>\n    return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/.venv\/lib\/python3.12\/site-packages\/flask_restful\/__init__.py&#034;, line 604, in dispatch_request<br \/>\n    resp &#061; meth(*args, **kwargs)<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/controllers\/console\/wraps.py&#034;, line 210, in decorated<br \/>\n    return view(*args, **kwargs)<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/libs\/login.py&#034;, line 61, in decorated_view<br \/>\n    return current_app.ensure_sync(func)(*args, **kwargs)<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/controllers\/console\/wraps.py&#034;, line 31, in decorated<br \/>\n    return view(*args, **kwargs)<br \/>\n           ^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/controllers\/console\/workspace\/models.py&#034;, line 155, in post<br \/>\n    model_provider_service.save_model_credentials(<br \/>\n  File &#034;\/app\/api\/services\/model_provider_service.py&#034;, line 237, in save_model_credentials<br \/>\n    provider_configuration.add_or_update_custom_model_credentials(<br \/>\n  File &#034;\/app\/api\/core\/entities\/provider_configuration.py&#034;, line 422, in add_or_update_custom_model_credentials<br \/>\n    provider_model_record, credentials &#061; self.custom_model_credentials_validate(model_type, model, credentials)<br \/>\n                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/core\/entities\/provider_configuration.py&#034;, line 402, in custom_model_credentials_validate<br \/>\n    credentials &#061; model_provider_factory.model_credentials_validate(<br \/>\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br \/>\n  File &#034;\/app\/api\/core\/model_runtime\/model_providers\/model_provider_factory.py&#034;, line 191, in model_credentials_validate<br \/>\n    self.plugin_model_manager.validate_model_credentials(<br \/>\n  File &#034;\/app\/api\/core\/plugin\/impl\/model.py&#034;, line 137, in validate_model_credentials<br \/>\n    for resp in response:<br \/>\n                ^^^^^^^^<br \/>\n  File &#034;\/app\/api\/core\/plugin\/impl\/base.py&#034;, line 212, in _request_with_plugin_daemon_response_stream<br \/>\n    self._handle_plugin_daemon_error(error.error_type, error.message)<br \/>\n  File &#034;\/app\/api\/core\/plugin\/impl\/base.py&#034;, line 248, in _handle_plugin_daemon_error<br \/>\n    raise PluginDaemonInternalServerError(description&#061;message)<br \/>\nPluginDaemonInternalServerError: no available node, plugin not found<\/p>\n<p>\u4fee\u6539\u6587\u4ef6 docker-compose.override.yaml \u4e2d\u7684 PIP_MIRROR_URL&#xff0c;\u91cd\u65b0\u90e8\u7f72\u5373\u53ef\u3002<\/p>\n<p>services:<br \/>\n  plugin_daemon:<br \/>\n    image: langgenius\/dify-plugin-daemon:0.2.0-local<br \/>\n    environment:<br \/>\n      PLUGIN_PYTHON_ENV_INIT_TIMEOUT: &#034;900&#034;<br \/>\n      PIP_MIRROR_URL: &#034;https:\/\/pypi.tuna.tsinghua.edu.cn\/simple&#034;<br \/>\n      FORCE_VERIFYING_SIGNATURE: &#034;false&#034;<\/p>\n<hr \/>\n<h4>\u9644\u5f55&#xff1a;\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/h4>\n<p><span class=\"token comment\"># \u8fdb\u5165\u90e8\u7f72\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> dify\/docker<\/p>\n<p><span class=\"token comment\"># \u9996\u6b21\u542f\u52a8<\/span><br \/>\n<span class=\"token function\">cp<\/span> .env.example .env<br \/>\n<span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u72b6\u6001\u4e0e\u65e5\u5fd7<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose <span class=\"token function\">ps<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span><\/p>\n<p><span class=\"token comment\"># \u5347\u7ea7<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose down<br \/>\n<span class=\"token function\">git<\/span> pull origin main<br \/>\n<span class=\"token function\">docker<\/span> compose pull<br \/>\n<span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p><span class=\"token comment\"># \u6e05\u7406<\/span><br \/>\n<span class=\"token function\">docker<\/span> compose down <span class=\"token parameter variable\">-v<\/span><\/p>\n<hr \/>\n<h4>\u53c2\u8003<\/h4>\n<ul>\n<li>Dify \u5b98\u65b9\u6587\u6863&#xff08;Docker Compose \u90e8\u7f72&#xff09;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Dify\u672c\u5730\u90e8\u7f72\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u6db5\u76d6\u73af\u5883\u51c6\u5907\u3001\u6e90\u7801\u83b7\u53d6\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u96c6\u6210\u7b49\u5173\u952e\u6b65\u9aa4\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u73af\u5883\u8981\u6c42\uff08Docker\u548cDocker Compose\u7248\u672c\u68c0\u67e5\uff09\uff1b2\uff09\u83b7\u53d6Dify\u6e90\u7801\u5e76\u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf\uff1b3\uff09\u901a\u8fc7Docker Compose\u542f\u52a8\u670d\u52a1\uff1b4\uff09\u9996\u6b21\u8bbf\u95ee\u65f6\u7684\u7ba1\u7406\u5458\u521d\u59cb\u5316\uff1b5\uff09\u96c6\u6210Qwen3\u5927\u8bed\u8a00\u6a21\u578b\uff1b6\uff09\u5e38\u7528\u8fd0\u7ef4\u64cd\u4f5c\uff08\u66f4\u65b0\u7248\u672c\u3001\u65e5\u5fd7\u67e5\u770b\u7b49\uff09\uff1b7\uff09\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\uff08\u5982\u7aef\u53e3\u51b2\u7a81\u3001\u7f51\u7edc\u95ee\u9898\u7b49\uff09\u3002\u6587\u7ae0\u7279\u522b\u9488\u5bf9macOS\/Linux\u7cfb\u7edf\u63d0\u4f9b\u4e86\u8be6\u7ec6\u6307\u5bfc\uff0cWindows\u7528\u6237\u53ef\u901a\u8fc7WSL2\u914d\u5408Docker De<\/p>\n","protected":false},"author":2,"featured_media":55728,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,5742,144,27,5743,121,3063],"topic":[],"class_list":["post-55732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-ai-","tag-dify","tag-docker","tag-qwen3","tag-121","tag-3063"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \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\/55732.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Dify\u672c\u5730\u90e8\u7f72\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u6db5\u76d6\u73af\u5883\u51c6\u5907\u3001\u6e90\u7801\u83b7\u53d6\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u96c6\u6210\u7b49\u5173\u952e\u6b65\u9aa4\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u73af\u5883\u8981\u6c42\uff08Docker\u548cDocker Compose\u7248\u672c\u68c0\u67e5\uff09\uff1b2\uff09\u83b7\u53d6Dify\u6e90\u7801\u5e76\u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf\uff1b3\uff09\u901a\u8fc7Docker Compose\u542f\u52a8\u670d\u52a1\uff1b4\uff09\u9996\u6b21\u8bbf\u95ee\u65f6\u7684\u7ba1\u7406\u5458\u521d\u59cb\u5316\uff1b5\uff09\u96c6\u6210Qwen3\u5927\u8bed\u8a00\u6a21\u578b\uff1b6\uff09\u5e38\u7528\u8fd0\u7ef4\u64cd\u4f5c\uff08\u66f4\u65b0\u7248\u672c\u3001\u65e5\u5fd7\u67e5\u770b\u7b49\uff09\uff1b7\uff09\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\uff08\u5982\u7aef\u53e3\u51b2\u7a81\u3001\u7f51\u7edc\u95ee\u9898\u7b49\uff09\u3002\u6587\u7ae0\u7279\u522b\u9488\u5bf9macOS\/Linux\u7cfb\u7edf\u63d0\u4f9b\u4e86\u8be6\u7ec6\u6307\u5bfc\uff0cWindows\u7528\u6237\u53ef\u901a\u8fc7WSL2\u914d\u5408Docker De\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55732.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T23:36:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233633-689d21818b143.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55732.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55732.html\",\"name\":\"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T23:36:41+00:00\",\"dateModified\":\"2025-08-13T23:36:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55732.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55732.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55732.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b\"}]},{\"@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":"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \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\/55732.html","og_locale":"zh_CN","og_type":"article","og_title":"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb171\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Dify\u672c\u5730\u90e8\u7f72\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u6db5\u76d6\u73af\u5883\u51c6\u5907\u3001\u6e90\u7801\u83b7\u53d6\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u96c6\u6210\u7b49\u5173\u952e\u6b65\u9aa4\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09\u73af\u5883\u8981\u6c42\uff08Docker\u548cDocker Compose\u7248\u672c\u68c0\u67e5\uff09\uff1b2\uff09\u83b7\u53d6Dify\u6e90\u7801\u5e76\u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf\uff1b3\uff09\u901a\u8fc7Docker Compose\u542f\u52a8\u670d\u52a1\uff1b4\uff09\u9996\u6b21\u8bbf\u95ee\u65f6\u7684\u7ba1\u7406\u5458\u521d\u59cb\u5316\uff1b5\uff09\u96c6\u6210Qwen3\u5927\u8bed\u8a00\u6a21\u578b\uff1b6\uff09\u5e38\u7528\u8fd0\u7ef4\u64cd\u4f5c\uff08\u66f4\u65b0\u7248\u672c\u3001\u65e5\u5fd7\u67e5\u770b\u7b49\uff09\uff1b7\uff09\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\uff08\u5982\u7aef\u53e3\u51b2\u7a81\u3001\u7f51\u7edc\u95ee\u9898\u7b49\uff09\u3002\u6587\u7ae0\u7279\u522b\u9488\u5bf9macOS\/Linux\u7cfb\u7edf\u63d0\u4f9b\u4e86\u8be6\u7ec6\u6307\u5bfc\uff0cWindows\u7528\u6237\u53ef\u901a\u8fc7WSL2\u914d\u5408Docker De","og_url":"https:\/\/www.wsisp.com\/helps\/55732.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T23:36:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813233633-689d21818b143.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55732.html","url":"https:\/\/www.wsisp.com\/helps\/55732.html","name":"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T23:36:41+00:00","dateModified":"2025-08-13T23:36:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55732.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55732.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55732.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u672c\u5730\u901a\u8fc7 Docker Compose \u90e8\u7f72 Dify\uff08\u793e\u533a\u7248\uff09\uff0c\u5e76\u96c6\u6210\u672c\u5730 Qwen3 \u5927\u6a21\u578b"}]},{"@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\/55732","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=55732"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55732\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/55728"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55732"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}