Files
weiyu/deploy/server/docs/zh-CN/assets/js/75d5ff30.f1c7d9bb.js
2025-04-29 17:30:08 +08:00

1 line
5.9 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5723],{4517:(e,l,o)=>{o.r(l),o.d(l,{assets:()=>r,contentTitle:()=>d,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>i});const n=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":"\u96c6\u7fa4","permalink":"/docs/zh-CN/docs/deploy/cluster"}}');var a=o(5723),c=o(6246);const s={sidebar_label:"Docker\u90e8\u7f72",sidebar_position:3},d="Docker\u90e8\u7f72",r={},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 qwen2.5:1.5b\u6a21\u578b\uff0c\u6240\u4ee5\u9700\u8981\u63d0\u524d\u62c9\u53d6\u6a21\u578b",id:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama-qwen2515b\u6a21\u578b\u6240\u4ee5\u9700\u8981\u63d0\u524d\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:"\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",p:"p",pre:"pre",ul:"ul",...(0,c.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.header,{children:(0,a.jsx)(l.h1,{id:"docker\u90e8\u7f72",children:"Docker\u90e8\u7f72"})}),"\n",(0,a.jsx)(l.admonition,{type:"tip",children:(0,a.jsxs)(l.ul,{children:["\n",(0,a.jsx)(l.li,{children:"\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 24.04 LTS"}),"\n",(0,a.jsx)(l.li,{children:"\u670d\u52a1\u5668\u6700\u4f4e\u914d\u7f6e8\u683816G\u5185\u5b58"}),"\n"]})}),"\n",(0,a.jsx)(l.h2,{id:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72",children:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72"}),"\n",(0,a.jsxs)(l.ul,{children:["\n",(0,a.jsx)(l.li,{children:(0,a.jsx)(l.a,{href:"./baota",children:"\u5b9d\u5854\u9762\u677f\u90e8\u7f72"})}),"\n"]}),"\n",(0,a.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,a.jsx)(l.pre,{children:(0,a.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,a.jsx)(l.h3,{id:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama-qwen2515b\u6a21\u578b\u6240\u4ee5\u9700\u8981\u63d0\u524d\u62c9\u53d6\u6a21\u578b",children:"\u56e0\u9879\u76ee\u9ed8\u8ba4\u4f7f\u7528ollama qwen2.5:1.5b\u6a21\u578b\uff0c\u6240\u4ee5\u9700\u8981\u63d0\u524d\u62c9\u53d6\u6a21\u578b"}),"\n",(0,a.jsx)(l.pre,{children:(0,a.jsx)(l.code,{className:"language-bash",children:"# \u5bf9\u8bdd\u6a21\u578b\nollama pull qwen2.5:latest\n# \u5411\u91cf\u6a21\u578b\nollama pull bge-m3:latest\n"})}),"\n",(0,a.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,a.jsx)(l.pre,{children:(0,a.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 qwen2.5:latest\n# \u5411\u91cf\u6a21\u578b\ndocker exec ollama-bytedesk ollama pull bge-m3:latest\n"})}),"\n",(0,a.jsx)(l.h2,{id:"\u505c\u6b62\u5bb9\u5668",children:"\u505c\u6b62\u5bb9\u5668"}),"\n",(0,a.jsx)(l.pre,{children:(0,a.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,a.jsx)(l.h2,{id:"\u6f14\u793a",children:"\u6f14\u793a"}),"\n",(0,a.jsx)(l.p,{children:"\u672c\u5730\u9884\u89c8"}),"\n",(0,a.jsx)(l.pre,{children:(0,a.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,a.jsxs)(l.ul,{children:["\n",(0,a.jsx)(l.li,{children:(0,a.jsx)(l.a,{href:"https://www.weiyuai.cn/admin/",children:"\u7ebf\u4e0a\u9884\u89c8"})}),"\n"]}),"\n",(0,a.jsx)(l.h2,{id:"\u5e38\u89c1\u95ee\u9898",children:"\u5e38\u89c1\u95ee\u9898"}),"\n",(0,a.jsxs)(l.ul,{children:["\n",(0,a.jsxs)(l.li,{children:["\u53c2\u8003 ",(0,a.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,a.jsx)(l,{...e,children:(0,a.jsx)(t,{...e})}):t(e)}},6246:(e,l,o)=>{o.d(l,{R:()=>s,x:()=>d});var n=o(2155);const a={},c=n.createContext(a);function s(e){const l=n.useContext(c);return n.useMemo((function(){return"function"==typeof e?e(l):{...l,...e}}),[l,e])}function d(e){let l;return l=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),n.createElement(c.Provider,{value:l},e.children)}}}]);