-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 897 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 897 Bytes
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
services:
llama-server:
build:
context: .
dockerfile: Dockerfile
container_name: llama-server
restart: always
ports:
- 8080:8080
volumes:
- ./unsloth:/models/
- ./config.yaml:/project/config.yaml
deploy:
resources:
reservations:
devices:
- capabilities: ["gpu"]
driver: nvidia
count: all
webui:
image: ghcr.io/open-webui/open-webui
container_name: webui
volumes:
- webui:/app/backend/data
depends_on:
- llama-server
ports:
- 3000:3000
environment:
- WEBUI_AUTH=False
- PORT=3000
- ENABLE_OPENAI_API=True
- OPENAI_API_BASE_URL=http://llama-server:8080/v1
- ENABLE_OLLAMA_API=False
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
webui: {}
llama-server: {}