forked from acon96/home-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.56 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# you can start and stop backends by running `docker-compose up -d <service name>`
version: '3.8'
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434" # Ollama default
volumes:
- ./models:/models
- ./scripts:/scripts # needed for import script
environment:
- OLLAMA_MODELS=/models/.ollama
restart: unless-stopped
text-generation-webui:
image: atinoda/text-generation-webui:default-cpu
container_name: textgen-webui
init: true
environment:
- EXTRA_LAUNCH_ARGS="--listen --verbose" # Custom launch args (e.g., --model MODEL_NAME)
ports:
- "7860:7860" # Web UI default
# - "5000:5000" # API Default
# - "5005:5005" # Streaming API default
volumes:
- ./models:/app/user_data/models
restart: unless-stopped
# llamacpp server can only run one model at a time; set it below
llamacpp:
image: ghcr.io/ggerganov/llama.cpp:server
container_name: llamacpp-server
ports:
- "8000:8000" # llama.cpp server default
volumes:
- ./models:/models
environment:
- MODEL_DIR=/models
restart: unless-stopped
command: |-
--port 8000
--no-webui
--metrics
--jinja
--ctx-size 8192
--alias "Home-3B-v3"
--model "/models/Home-3B-v3-fixed.q4_k_m.gguf"
localai:
image: localai/localai:latest
container_name: localai
ports:
- "8080:8080" # LocalAI default
volumes:
- ./models:/models
environment:
- MODELS_PATH=/models
restart: unless-stopped