-
Notifications
You must be signed in to change notification settings - Fork 5.9k
/
Copy pathdocker-compose.yaml
37 lines (37 loc) · 1.29 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.9'
services:
xinference:
image: xprobe/xinference:v0.12.3
restart: always
command: xinference-local -H 0.0.0.0
# ports: # 不使用 host network 时可打开.
# - "9997:9997"
network_mode: "host"
# 将本地路径(~/xinference)挂载到容器路径(/root/.xinference)中,
# 详情见: https://inference.readthedocs.io/zh-cn/latest/getting_started/using_docker_image.html
volumes:
- ~/xinference:/root/.xinference
# - ~/xinference/cache/huggingface:/root/.cache/huggingface
# - ~/xinference/cache/modelscope:/root/.cache/modelscope
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
runtime: nvidia
# 模型源更改为 ModelScope, 默认为 HuggingFace
# environment:
# - XINFERENCE_MODEL_SRC=modelscope
chatchat:
image: chatimage/chatchat:0.3.1.3-f9e3895-20241008
# image: ccr.ccs.tencentyun.com/chatchat/chatchat:0.3.1.2-2024-0720
restart: always
# ports: # 不使用 host network 时可打开.
# - "7861:7861"
# - "8501:8501"
network_mode: "host"
# 将本地路径(~/chatchat)挂载到容器默认数据路径($CHATCHAT_ROOT)中
# volumes:
# - /root/chatchat:/root/chatchat_data