修复环境变量位置并挂载
This commit is contained in:
1 parent
b98314da4f
commit
a7e6bc14dc
2 files changed
+5
-5
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
+4
-3
@@ -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:
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user