Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-ai committed Sep 6, 2024
1 parent 34d91ef commit 9f0a2f3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
services:
# 向量数据库做检索使用
xinference:
image: xprobe/xinference:v0.14.0 # 使用的Docker镜像
image: xprobe/xinference:latest-cpu # 使用的Docker镜像
container_name: xinference # 容器名称
volumes:
- ./cache/.xinference:/root/.xinference # 绑定主机和容器的目录
- ./cache/huggingface:/root/.cache/huggingface
- ./cache/modelscope:/root/.cache/modelscope
environment:
XINFERENCE_MODEL_SRC: modelscope
ports:
- "9997:9997" # 映射端口
restart: always # 容器重启策略
deploy:
resources:
reservations:
devices:
- capabilities: [ "gpu" ]
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: [ "gpu" ]
command: xinference-local -H 0.0.0.0 # 容器启动时运行的命令

pgvector:
Expand Down

0 comments on commit 9f0a2f3

Please sign in to comment.