-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
ollama.yml
40 lines (36 loc) · 1.07 KB
/
ollama.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
40
# DOMAIN=example.com docker stack deploy -c ollama.yml ollama
services:
web:
image: ghcr.io/open-webui/open-webui:main
environment:
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://ollama:11434}
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
volumes:
- ${VOLUME_PATH}data:/app/backend/data
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.ollama-${NUMBER:-1}.rule=Host(`${DOMAIN:-ollama.localhost}`)
- traefik.http.routers.ollama-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.ollama-${NUMBER:-1}.service=ollama-${NUMBER:-1}
- traefik.http.routers.ollama-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.ollama-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- internal
- traefik
ollama:
image: ollama/ollama:latest
volumes:
- ${VOLUME_PATH}ollama:/root/.ollama
networks:
- internal
volumes:
data:
ollama:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net