Skip to content

Commit

Permalink
Merge pull request #23 from HuaTru/dev
Browse files Browse the repository at this point in the history
Dockerfile添加环境变量
  • Loading branch information
smilexizheng authored Mar 19, 2024
2 parents 155a4ce + 6e44ce0 commit 21eab9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ ENV COCO_EXPIRATION_TTL=5 \
COCO_USER_RATE_TIME=5 \
COCO_USER_FREQUENCY_DEGREE=1 \
COCO_USER_TOKEN_EXPIRE=1 \
COCO_USER_LEVEL=2
COCO_USER_LEVEL=2 \
RISK_CONTR_GET_TOKEN_NUM=10 \
RISK_CONTR_TOKEN_MAX_REQ=500 \
RISK_CONTR_USER_MAX_REQ=1000 \
RISK_CONTR_USER_MAX_TIME=10 \
RISK_CONTR_TOKEN_INVALID_NUM=10 \
RISK_CONTR_REJECT_TIME_NUM=30 \
RISK_CONTR_REJECT_TIME=2 \
RISK_CONTR_BAN_NUM=5

# 暴露8181端口
EXPOSE 8181
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ services:
COCO_USER_FREQUENCY_DEGREE: "1"
COCO_USER_TOKEN_EXPIRE: "1"
COCO_USER_LEVEL: "2"
RISK_CONTR_GET_TOKEN_NUM: "10"
RISK_CONTR_TOKEN_MAX_REQ: "500"
RISK_CONTR_USER_MAX_REQ: "2000"
RISK_CONTR_USER_MAX_TIME: "10"
RISK_CONTR_TOKEN_INVALID_NUM: "10"
RISK_CONTR_REJECT_TIME_NUM: "30"
RISK_CONTR_REJECT_TIME: "2"
RISK_CONTR_BAN_NUM: "5"
volumes:
- ./src/main/resources/redisson-config.yml:/app/conf/redisson-config.yml:rw

redis:
image: redis
Expand Down

0 comments on commit 21eab9f

Please sign in to comment.