-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 947 Bytes
/
docker-compose.yml
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
38
39
services:
qwen2:
image: qwenllm/qwenvl:2-cu121
container_name: qwen2
ports:
- "11434:11434"
ipc: "host"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
command: >
bash -c "python -m vllm.entrypoints.openai.api_server
--served-model-name Qwen2-VL-7B-Instruct
--model Qwen/Qwen2-VL-7B-Instruct
--max_model_len 10000
--cpu-offload-gb 0
--gpu-memory-utilization 0.9
--port 11434"
webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- WEBUI_AUTH=False
- OPENAI_API_BASE_URL=http://host.docker.internal:11434/v1
- ENABLE_OPENAI_API=true
volumes:
open-webui: