-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.ollama.yaml
64 lines (63 loc) · 1.4 KB
/
compose.ollama.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: ollama
services:
proxy:
image: "tinyproxy"
networks:
- external
- internal
volumes:
- ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf
extra_hosts:
- "host.docker.internal:host-gateway"
http:
image: "caddy"
restart: unless-stopped
networks:
- external
- internal
depends_on:
- app
- webui
ports:
- "11434:11434"
- "11435:11435"
volumes:
- ./caddy.ollama.Caddyfile:/etc/caddy/Caddyfile
app:
image: "ollama/ollama"
restart: unless-stopped
networks:
- internal
environment:
- http_proxy=http://proxy:8118
- https_proxy=http://proxy:8118
- no_proxy=localhost,127.0.0.1,0.0.0.0,app,webui,proxy,::1
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
count: all
volumes:
- ./ollama/app:/root/.ollama:z
webui:
image: "ghcr.io/open-webui/open-webui:main"
restart: unless-stopped
links:
- app
networks:
- internal
depends_on:
- app
environment:
- OLLAMA_BASE_URL=http://app:11434
- http_proxy=http://proxy:8118
- https_proxy=http://proxy:8118
- no_proxy=localhost,127.0.0.1,0.0.0.0,app,webui,proxy,::1
volumes:
- ./ollama/webui:/app/backend/data:z
networks:
external:
internal:
internal: true