feat: 修改程序端口为8080

This commit is contained in:
shaohuzhang1 2024-03-19 19:59:54 +08:00
parent e24f90fb00
commit 6c412c7bb0
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ MaxKB 是一款基于 LLM 大语言模型的知识库问答系统。
## 快速开始
```
docker run -d --name=maxkb -p 8000:8000 ghcr.io/1panel-dev/maxkb
docker run -d --name=maxkb -p 8080:8080 ghcr.io/1panel-dev/maxkb
```
也可以通过 [1Panel 应用商店](https://apps.fit2cloud.com/1panel) 快速部署 MaxKB + OllamaLlama 230 分钟内即可上线基于本地大模型的知识库问答系统。

View File

@ -29,7 +29,7 @@ RUN mv /opt/maxkb/app/model/* /opt/maxkb/model && \
rm -rf /var/lib/apt/lists/*
# 启动命令
VOLUME /opt/maxkb/conf
EXPOSE 8000
EXPOSE 8080
COPY installer/run-maxkb.sh /usr/bin/
RUN chmod 755 /usr/bin/run-maxkb.sh
ENTRYPOINT ["bash", "-c"]

View File

@ -44,7 +44,7 @@ def perform_db_migrate():
def start_services():
management.call_command('migrate')
management.call_command('runserver', "0.0.0.0:8000")
management.call_command('runserver', "0.0.0.0:8080")
if __name__ == '__main__':

View File

@ -11,7 +11,7 @@ export default defineConfig(({ mode }) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/api'] = {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path) => path.replace(ENV.VITE_BASE_PATH, '/')
}