26
.env
Normal file
26
.env
Normal file
@@ -0,0 +1,26 @@
|
||||
# 您不应该修改默认值,这个文件被仓库索引,请修改.env.prod
|
||||
ENVIRONMENT=prod
|
||||
HOST=127.0.0.1
|
||||
PORT=8080
|
||||
|
||||
COMMAND_START=["/"]
|
||||
|
||||
# 插件配置
|
||||
PLUGINS=["src2.plugins.chat"]
|
||||
|
||||
# 默认配置
|
||||
MONGODB_HOST=127.0.0.1
|
||||
MONGODB_PORT=27017
|
||||
DATABASE_NAME=MegBot
|
||||
|
||||
MONGODB_USERNAME = "" # 默认空值
|
||||
MONGODB_PASSWORD = "" # 默认空值
|
||||
MONGODB_AUTH_SOURCE = "" # 默认空值
|
||||
|
||||
#key and url
|
||||
CHAT_ANY_WHERE_KEY=
|
||||
SILICONFLOW_KEY=
|
||||
CHAT_ANY_WHERE_BASE_URL=https://api.chatanywhere.tech/v1
|
||||
SILICONFLOW_BASE_URL=https://api.siliconflow.cn/v1/
|
||||
DEEP_SEEK_KEY=
|
||||
DEEP_SEEK_BASE_URL=https://api.deepseek.com/v1
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -14,7 +14,7 @@ reasoning_content.bat
|
||||
reasoning_window.bat
|
||||
queue_update.txt
|
||||
memory_graph.gml
|
||||
.env.dev
|
||||
.env.*
|
||||
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
@@ -147,7 +147,6 @@ celerybeat.pid
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
|
||||
@@ -2,8 +2,7 @@ FROM nonebot/nb-cli:latest
|
||||
WORKDIR /
|
||||
COPY . /MaiMBot/
|
||||
WORKDIR /MaiMBot
|
||||
RUN mv config/env.example config/.env \
|
||||
&& mv config/bot_config_toml config/bot_config.toml
|
||||
RUN mv config/bot_config_toml config/bot_config.toml
|
||||
RUN pip install --upgrade -r requirements.txt
|
||||
VOLUME [ "/MaiMBot/config" ]
|
||||
EXPOSE 8080
|
||||
|
||||
@@ -27,7 +27,7 @@ services:
|
||||
- mongodb:/data/db
|
||||
- mongodbCONFIG:/data/configdb
|
||||
image: mongo:latest
|
||||
|
||||
|
||||
maimbot:
|
||||
container_name: maimbot
|
||||
environment:
|
||||
@@ -41,8 +41,8 @@ services:
|
||||
volumes:
|
||||
- maimbotCONFIG:/MaiMBot/config
|
||||
- maimbotDATA:/MaiMBot/data
|
||||
- ./.env.prod:/MaiMBot/.env.prod
|
||||
image: sengokucola/maimbot:latest
|
||||
|
||||
|
||||
volumes:
|
||||
maimbotCONFIG:
|
||||
@@ -51,4 +51,5 @@ volumes:
|
||||
napcatCONFIG:
|
||||
mongodb:
|
||||
mongodbCONFIG:
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user