mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 21:44:46 +07:00
feat(ollama): add web UI
This commit is contained in:
parent
78b45e614d
commit
a31988e1c7
@ -6,12 +6,26 @@ app-template:
|
|||||||
image:
|
image:
|
||||||
repository: docker.io/ollama/ollama
|
repository: docker.io/ollama/ollama
|
||||||
tag: 0.1.29
|
tag: 0.1.29
|
||||||
|
ui:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/open-webui/open-webui
|
||||||
|
tag: latest
|
||||||
|
env:
|
||||||
|
OLLAMA_BASE_URL: http://ollama:11434
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
port: 11434
|
port: 11434
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
ui:
|
||||||
|
controller: ui
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 8080
|
||||||
|
protocol: HTTP
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
@ -19,14 +33,22 @@ app-template:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
hosts:
|
hosts:
|
||||||
- host: &host ollama.khuedoan.com
|
- host: &ollamaHost ollama.khuedoan.com
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
service:
|
service:
|
||||||
name: main
|
name: main
|
||||||
port: http
|
port: http
|
||||||
|
- host: &uiHost ai.khuedoan.com
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
service:
|
||||||
|
name: ui
|
||||||
|
port: http
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- *host
|
- *ollamaHost
|
||||||
|
- *uiHost
|
||||||
secretName: ollama-tls-certificate
|
secretName: ollama-tls-certificate
|
||||||
|
Loading…
Reference in New Issue
Block a user