-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from SK-415/dev
Release v1.3.0.post1
- Loading branch information
Showing
9 changed files
with
529 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ _demo/ | |
|
||
.env | ||
.env.dev | ||
docker-compose.yml | ||
Dockerfile | ||
|
||
src/plugins/copyman.py | ||
src/plugins/test.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8 | ||
|
||
RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple | ||
|
||
RUN python3 -m pip install poetry && poetry config virtualenvs.create false | ||
|
||
COPY ./pyproject.toml ./poetry.lock* /app/ | ||
|
||
RUN poetry install --no-root --no-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "2" | ||
services: | ||
# 其他配置参考 https://hub.docker.com/r/tiangolo/uvicorn-gunicorn-fastapi/ | ||
nonebot: | ||
build: . | ||
volumes: | ||
- "/etc/localtime:/etc/localtime" | ||
- "./:/app/" | ||
ports: | ||
- "8080:8080" # 映射端口到宿主机 宿主机端口:容器端口 | ||
env_file: | ||
- ".env.prod" # fastapi 使用的环境变量文件 | ||
environment: | ||
- ENVIRONMENT=prod # 配置 nonebot 运行环境,此项会被 .env 文件覆盖 | ||
- APP_MODULE=bot:app # 配置 asgi 入口 | ||
- SECRET # 通过 SECRET=xxx nb up -d 传递密钥 | ||
- ACCESS_TOKEN # 通过 ACCESS_TOKEN=xxx nb up -d 传递密钥 | ||
- MAX_WORKERS=1 # 如果你有多个QQ,且存在 self_id 指定,多个 worker 会导致无法找到其他 websocket 连接 | ||
network_mode: bridge |
Oops, something went wrong.
cd5172e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: