增加文件管理

This commit is contained in:
zhouhao 2022-06-13 14:45:37 +08:00
parent 79e3db9266
commit 6760b7e817
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ services:
- "8000-8010:8000-8010" # 预留
volumes:
- "jetlinks-volume:/application/static/upload" # 持久化上传的文件
- "jetlinks-file-volume:/application/data/files"
- "jetlinks-protocol-volume:/application/data/protocols"
environment:
- "JAVA_OPTS=-Duser.language=zh -XX:+UseG1GC"
@ -81,6 +82,7 @@ services:
# - "spring.reactor.debug-agent.enabled=false" #设置为false能提升性能
- "spring.redis.host=redis"
- "spring.redis.port=6379"
- "file.manager.storage-base-path=/application/data/files"
- "spring.redis.password=JetLinks@redis"
- "logging.level.io.r2dbc=warn"
- "logging.level.org.springframework.data=warn"
@ -101,4 +103,5 @@ volumes:
redis-volume:
elasticsearch-volume:
jetlinks-volume:
jetlinks-file-volume:
jetlinks-protocol-volume:

View File

@ -106,6 +106,10 @@ hsweb:
type: redis
redis:
local-cache-type: guava
file:
manager:
storage-base-path: ./data/files
jetlinks:
server-id: ${spring.application.name}:${server.port} #设备服务网关服务ID,不同服务请设置不同的ID
logging: