forked from github/dataease
refactor: selenium镜像添加cpu和内存限制
This commit is contained in:
parent
9e58760b43
commit
80a223daf7
@ -5,6 +5,11 @@ services:
|
||||
container_name: de-selenium
|
||||
shm_size: 2gb
|
||||
privileged: true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${DE_SELENIUM_CPU_LIMIT}
|
||||
memory: ${DE_SELENIUM_MEM_LIMIT}
|
||||
environment:
|
||||
- SE_START_XVFB=false
|
||||
- SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=true
|
||||
|
@ -23,3 +23,9 @@ DE_MYSQL_USER=root
|
||||
DE_MYSQL_PASSWORD=Password123@mysql
|
||||
## 数据库参数
|
||||
DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true"
|
||||
|
||||
# 定时报告镜像配置
|
||||
## selenium 镜像 CPU 限制
|
||||
DE_SELENIUM_CPU_LIMIT='1'
|
||||
## selenium 镜像 内存 限制
|
||||
DE_SELENIUM_MEM_LIMIT=2g
|
||||
|
Loading…
Reference in New Issue
Block a user