-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (46 loc) · 1.05 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
38
39
40
41
42
43
44
45
46
47
48
services:
# https://ollama.com/
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ./_data/ollama:/root/.ollama
restart: always
deploy:
resources:
reservations:
# https://docs.docker.com/compose/how-tos/gpu-support/
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# https://github.com/open-webui/open-webui
ollama-ui:
image: ghcr.io/open-webui/open-webui:main
container_name: ollama-ui
ports:
- 8080:8080
# https://docs.openwebui.com/getting-started/env-configuration
env_file:
- env.global.env
- env.ui.env
volumes:
- ./_data/ollama-ui:/app/backend/data
depends_on:
- ollama
restart: always
alexis:
image: olafrv/alexis:latest
build:
context: ./alexis
dockerfile: Dockerfile
container_name: alexis
ports:
- "11435:11435"
restart: always
env_file:
- env.global.env
depends_on:
- ollama