Add gpu to ollama, and fix gui websocket issue
This commit is contained in:
@@ -53,11 +53,14 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- karakeep-int
|
- karakeep-int
|
||||||
ollama:
|
ollama:
|
||||||
image: docker.io/ollama/ollama:0.11.10
|
image: docker.io/ollama/ollama:rocm
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
- /data/library/ollama/ollama:/root/.ollama
|
- /data/library/ollama/ollama:/root/.ollama
|
||||||
pull_policy: always
|
devices:
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
- /dev/kfd:/dev/kfd
|
||||||
|
# pull_policy: always
|
||||||
tty: true
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -8,6 +8,18 @@ server {
|
|||||||
|
|
||||||
include /etc/nginx/snippets/letsencrypt.conf;
|
include /etc/nginx/snippets/letsencrypt.conf;
|
||||||
# include /etc/nginx/snippets/authelia-location.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 / {
|
location / {
|
||||||
include /etc/nginx/snippets/proxy.conf;
|
include /etc/nginx/snippets/proxy.conf;
|
||||||
|
|||||||
Reference in New Issue
Block a user