mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 20:57:51 +00:00
1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5723],{1870:(e,l,n)=>{n.r(l),n.d(l,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"deploy/docker","title":"Docker\u90e8\u7f72","description":"- \u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 24.04 LTS","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/deploy/docker.md","sourceDirName":"deploy","slug":"/deploy/docker","permalink":"/docs/zh-CN/docs/deploy/docker","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/docker.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_label":"Docker\u90e8\u7f72","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"\u5b9d\u5854\u9762\u677f\u90e8\u7f72","permalink":"/docs/zh-CN/docs/deploy/baota"},"next":{"title":"\u670d\u52a1\u5668\u914d\u7f6e\u53c2\u6570\u8bf4\u660e","permalink":"/docs/zh-CN/docs/deploy/config"}}');var d=n(5723),c=n(6246);const s={sidebar_label:"Docker\u90e8\u7f72",sidebar_position:3},r="Docker\u90e8\u7f72",a={},i=[{value:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",id:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",level:2},{value:"\u65b9\u6cd5\u4e00\uff1a\u4e00\u884c\u547d\u4ee4\u542f\u52a8\uff0c\u9700\u8981\u53e6\u884c\u5b89\u88c5ollama",id:"\u65b9\u6cd5\u4e00\u4e00\u884c\u547d\u4ee4\u542f\u52a8\u9700\u8981\u53e6\u884c\u5b89\u88c5ollama",level:2},{value:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama qwen3:0.6b\u6a21\u578b\uff0c\u6240\u4ee5\u9700\u8981\u53e6\u5916\u62c9\u53d6\u6a21\u578b",id:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama-qwen306b\u6a21\u578b\u6240\u4ee5\u9700\u8981\u53e6\u5916\u62c9\u53d6\u6a21\u578b",level:3},{value:"\u65b9\u6cd5\u4e8c\uff1a \u4f7f\u7528 docker compose ollama\uff0c\u9ed8\u8ba4\u96c6\u6210ollama",id:"\u65b9\u6cd5\u4e8c-\u4f7f\u7528-docker-compose-ollama\u9ed8\u8ba4\u96c6\u6210ollama",level:2},{value:"\u505c\u6b62\u5bb9\u5668",id:"\u505c\u6b62\u5bb9\u5668",level:2},{value:"\u6f14\u793a",id:"\u6f14\u793a",level:2},{value:"\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",id:"\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",level:2},{value:"\u5e38\u89c1\u95ee\u9898",id:"\u5e38\u89c1\u95ee\u9898",level:2}];function t(e){const l={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,c.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.header,{children:(0,d.jsx)(l.h1,{id:"docker\u90e8\u7f72",children:"Docker\u90e8\u7f72"})}),"\n",(0,d.jsx)(l.admonition,{type:"tip",children:(0,d.jsxs)(l.ul,{children:["\n",(0,d.jsx)(l.li,{children:"\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 24.04 LTS"}),"\n",(0,d.jsx)(l.li,{children:"\u670d\u52a1\u5668\u6700\u4f4e\u914d\u7f6e8\u683816G\u5185\u5b58"}),"\n"]})}),"\n",(0,d.jsx)(l.h2,{id:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",children:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72"}),"\n",(0,d.jsxs)(l.ul,{children:["\n",(0,d.jsx)(l.li,{children:(0,d.jsx)(l.a,{href:"./baota",children:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72"})}),"\n",(0,d.jsx)(l.li,{children:(0,d.jsx)(l.a,{href:"./depend/docker",children:"\u90e8\u7f72Docker"})}),"\n"]}),"\n",(0,d.jsx)(l.h2,{id:"\u65b9\u6cd5\u4e00\u4e00\u884c\u547d\u4ee4\u542f\u52a8\u9700\u8981\u53e6\u884c\u5b89\u88c5ollama",children:"\u65b9\u6cd5\u4e00\uff1a\u4e00\u884c\u547d\u4ee4\u542f\u52a8\uff0c\u9700\u8981\u53e6\u884c\u5b89\u88c5ollama"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"git clone https://gitee.com/270580156/weiyu.git && cd weiyu/deploy/docker && docker compose -p weiyu -f docker-compose.yaml up -d\n"})}),"\n",(0,d.jsx)(l.h3,{id:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama-qwen306b\u6a21\u578b\u6240\u4ee5\u9700\u8981\u53e6\u5916\u62c9\u53d6\u6a21\u578b",children:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama qwen3:0.6b\u6a21\u578b\uff0c\u6240\u4ee5\u9700\u8981\u53e6\u5916\u62c9\u53d6\u6a21\u578b"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"# \u5bf9\u8bdd\u6a21\u578b\nollama pull qwen3:0.6b\n# \u5411\u91cf\u6a21\u578b\nollama pull bge-m3:latest\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u65b9\u6cd5\u4e8c-\u4f7f\u7528-docker-compose-ollama\u9ed8\u8ba4\u96c6\u6210ollama",children:"\u65b9\u6cd5\u4e8c\uff1a \u4f7f\u7528 docker compose ollama\uff0c\u9ed8\u8ba4\u96c6\u6210ollama"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"git clone https://gitee.com/270580156/weiyu.git && cd weiyu/deploy/docker && docker compose -p weiyu -f docker-compose-ollama.yaml up -d\n# \u5bf9\u8bdd\u6a21\u578b\ndocker exec ollama-bytedesk ollama pull qwen3:0.6b\n# \u5411\u91cf\u6a21\u578b\ndocker exec ollama-bytedesk ollama pull bge-m3:latest\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u505c\u6b62\u5bb9\u5668",children:"\u505c\u6b62\u5bb9\u5668"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"docker compose -p weiyu -f docker-compose.yaml stop\n# \u6216\u8005\ndocker compose -p weiyu -f docker-compose-ollama.yaml stop\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u6f14\u793a",children:"\u6f14\u793a"}),"\n",(0,d.jsx)(l.p,{children:"\u672c\u5730\u9884\u89c8"}),"\n",(0,d.jsx)(l.pre,{children:(0,d.jsx)(l.code,{className:"language-bash",children:"# \u8bf7\u5c06127.0.0.1\u66ff\u6362\u4e3a\u4f60\u7684\u670d\u52a1\u5668ip\nhttp://127.0.0.1:9003/\n"})}),"\n",(0,d.jsx)(l.h2,{id:"\u914d\u7f6e\u57df\u540d\u8bbf\u95ee",children:"\u914d\u7f6e\u57df\u540d\u8bbf\u95ee"}),"\n",(0,d.jsx)(l.p,{children:"\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5efa\u8bae\u914d\u7f6e\u57df\u540d\u8bbf\u95ee\u548cHTTPS\uff1a"}),"\n",(0,d.jsxs)(l.ol,{children:["\n",(0,d.jsxs)(l.li,{children:[(0,d.jsx)(l.strong,{children:"\u5b89\u88c5\u914d\u7f6eNginx"}),"\uff1a\u53c2\u8003",(0,d.jsx)(l.a,{href:"/docs/zh-CN/docs/deploy/depend/nginx",children:"Nginx\u914d\u7f6e\u6307\u5357"})]}),"\n",(0,d.jsxs)(l.li,{children:[(0,d.jsx)(l.strong,{children:"\u914d\u7f6eSSL\u8bc1\u4e66"}),"\uff1a\u5efa\u8bae\u4f7f\u7528",(0,d.jsx)(l.a,{href:"/docs/zh-CN/docs/deploy/depend/letsencrypt",children:"Let's Encrypt"}),"\u514d\u8d39\u8bc1\u4e66"]}),"\n"]}),"\n",(0,d.jsx)(l.h2,{id:"\u5e38\u89c1\u95ee\u9898",children:"\u5e38\u89c1\u95ee\u9898"}),"\n",(0,d.jsxs)(l.ul,{children:["\n",(0,d.jsxs)(l.li,{children:["\u53c2\u8003 ",(0,d.jsx)(l.a,{href:"/docs/faq",children:"\u5e38\u89c1\u95ee\u9898"})]}),"\n"]})]})}function h(e={}){const{wrapper:l}={...(0,c.R)(),...e.components};return l?(0,d.jsx)(l,{...e,children:(0,d.jsx)(t,{...e})}):t(e)}},6246:(e,l,n)=>{n.d(l,{R:()=>s,x:()=>r});var o=n(2155);const d={},c=o.createContext(d);function s(e){const l=o.useContext(c);return o.useMemo((function(){return"function"==typeof e?e(l):{...l,...e}}),[l,e])}function r(e){let l;return l=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:s(e.components),o.createElement(c.Provider,{value:l},e.children)}}}]); |