feat(storage): add local storage framework
This commit is contained in:
parent
228da8f814
commit
964b545bc5
24 changed files with 890 additions and 98 deletions
|
|
@ -17,11 +17,14 @@ services:
|
|||
ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
|
||||
JWT_ISSUER: ${JWT_ISSUER:-hermes}
|
||||
LOG_LEVEL: ${LOG_LEVEL:-INFO}
|
||||
STORAGE_PROVIDER: ${STORAGE_PROVIDER:-local}
|
||||
STORAGE_BASE_PATH: ${STORAGE_BASE_PATH:-/data/storage}
|
||||
STORAGE_MAX_UPLOAD_MB: ${STORAGE_MAX_UPLOAD_MB:-50}
|
||||
KNOWLEDGE_STORAGE_PATH: ${KNOWLEDGE_STORAGE_PATH:-/data/knowledge}
|
||||
KNOWLEDGE_MAX_UPLOAD_MB: ${KNOWLEDGE_MAX_UPLOAD_MB:-50}
|
||||
|
||||
volumes:
|
||||
- knowledge-data:/data/knowledge
|
||||
- ${STORAGE_HOST_PATH:-./storage}:/data/storage
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
|
@ -33,6 +36,3 @@ services:
|
|||
networks:
|
||||
olympus-network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
knowledge-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue