feat: add ollama & PostgresSQL & Qdrant & RabbitMQ
This commit is contained in:
14
src/qdrant/.env.example
Normal file
14
src/qdrant/.env.example
Normal file
@@ -0,0 +1,14 @@
|
||||
# Qdrant Version
|
||||
QDRANT_VERSION="v1.15.4"
|
||||
|
||||
# Qdrant API Key
|
||||
QDRANT_API_KEY=
|
||||
|
||||
# Use RBAC
|
||||
QDRANT_JWT_RBAC=true
|
||||
|
||||
# HTTP Port
|
||||
QDRANT_HTTP_PORT=
|
||||
|
||||
# gRPC Port
|
||||
QDRANT_GRPC_PORT=
|
||||
5
src/qdrant/README.md
Normal file
5
src/qdrant/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Qdrant
|
||||
|
||||
## 鉴权
|
||||
|
||||
Qdrant 支持 [API 密钥](https://qdrant.tech/documentation/guides/security/#read-only-api-key)和 [JWT 令牌](https://qdrant.tech/documentation/guides/security/#granular-access-control-with-jwt)两种鉴权方式。
|
||||
35
src/qdrant/docker-compose.yaml
Normal file
35
src/qdrant/docker-compose.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- &localtime /etc/localtime:/etc/localtime:ro
|
||||
- &timezone /etc/timezone:/etc/timezone:ro
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
|
||||
services:
|
||||
qdrant:
|
||||
<<: *default
|
||||
image: qdrant/qdrant:${QDRANT_VERSION:-v1.15.4}
|
||||
ports:
|
||||
- "${QDRANT_HTTP_PORT:-6333}:6333"
|
||||
- "${QDRANT_GRPC_PORT:-6334}:6334"
|
||||
volumes:
|
||||
- *localtime
|
||||
- *timezone
|
||||
- qdrant_data:/qdrant/storage:z
|
||||
environment:
|
||||
- QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
|
||||
- QDRANT__SERVICE__JWT_RBAC=${QDRANT_JWT_RBAC:-false}
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 256M
|
||||
|
||||
volumes:
|
||||
qdrant_data:
|
||||
Reference in New Issue
Block a user