Skip to content

Commit 8d779b6

Browse files
committed
feat(docker): 添加qdrant向量数据库服务配置
在docker-compose.yml中添加qdrant服务配置,并更新start-container.ps1脚本以支持qdrant服务启动
1 parent da7eefa commit 8d779b6

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎config/dockerfiles/compose/docker-compose.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,17 @@ services:
250250
max-size: "10m"
251251
max-file: "3"
252252
profiles: ["kokoro-fastapi"]
253+
254+
qdrant:
255+
image: qdrant/qdrant:latest
256+
container_name: qdrant-dev
257+
restart: ${RESTART_POLICY:-unless-stopped}
258+
ports: ["6333:6333"]
259+
volumes:
260+
- "${DATA_PATH}/qdrant:/qdrant/storage"
261+
logging:
262+
driver: "json-file"
263+
options:
264+
max-size: "10m"
265+
max-file: "3"
266+
profiles: ["qdrant"]

‎start-container.ps1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- cadvisor: 容器监控
2323
- prometheus: 监控系统
2424
- noco: 无代码平台
25+
- qdrant: 向量数据库
2526
2627
.PARAMETER RestartPolicy
2728
容器重启策略,默认为'unless-stopped'。可选值:
@@ -73,7 +74,7 @@
7374
param (
7475
[Parameter(Mandatory = $false)]
7576
[ValidateSet("minio", "redis", 'postgre', 'etcd', 'nacos', 'rabbitmq', 'mongodb', 'one-api', 'mongodb-replica', 'kokoro-fastapi',
76-
'kokoro-fastapi-cpu', 'cadvisor', 'prometheus', 'noco', 'n8n', 'crawl4ai', 'pageSpy', 'new-api')]
77+
'kokoro-fastapi-cpu', 'cadvisor', 'prometheus', 'noco', 'n8n', 'crawl4ai', 'pageSpy', 'new-api', 'qdrant')]
7778
[string]$ServiceName, # 更合理的参数名
7879

7980
[ValidateSet("always", "unless-stopped", 'on-failure', 'on-failure:3', 'no')]

0 commit comments

Comments
 (0)