Add gpu to ollama, and fix gui websocket issue

This commit is contained in:
2026-01-20 00:12:07 -06:00
parent 437de6be67
commit ea65ae941b
2 changed files with 17 additions and 2 deletions

View File

@@ -53,11 +53,14 @@ services:
networks:
- karakeep-int
ollama:
image: docker.io/ollama/ollama:0.11.10
image: docker.io/ollama/ollama:rocm
volumes:
- .:/code
- /data/library/ollama/ollama:/root/.ollama
pull_policy: always
devices:
- /dev/dri:/dev/dri
- /dev/kfd:/dev/kfd
# pull_policy: always
tty: true
restart: always
environment:

View File

@@ -8,6 +8,18 @@ server {
include /etc/nginx/snippets/letsencrypt.conf;
# include /etc/nginx/snippets/authelia-location.conf;
location /ws/ {
proxy_pass http://ollama-webui:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
location / {
include /etc/nginx/snippets/proxy.conf;