added ollama+webui

This commit is contained in:
Dominik 2024-08-24 16:43:52 +02:00
parent 19f8d37cba
commit 9f6f4eeb96
3 changed files with 51 additions and 0 deletions

2
.gitignore vendored
View File

@ -65,3 +65,5 @@ reverse-proxy-exercise/conf/
reverse-proxy-exercise/data/ reverse-proxy-exercise/data/
reverse-proxy-exercise/work/ reverse-proxy-exercise/work/
reverse-proxy-exercise/letsencrypt/ reverse-proxy-exercise/letsencrypt/
ollama/ollama/
ollama/webui/

View File

@ -62,6 +62,7 @@ The host networking driver only works on Linux hosts, but is availabe as a beta
| [nginx](https://hub.docker.com/_/nginx) | [82](http://localhost:82) | | [nginx](https://hub.docker.com/_/nginx) | [82](http://localhost:82) |
| [Nginx Proxy Manager](https://nginxproxymanager.com/x) | [8181](http://localhost:8181) | | [Nginx Proxy Manager](https://nginxproxymanager.com/x) | [8181](http://localhost:8181) |
| [Obsidian-LiveSync](https://github.com/vrtmrz/obsidian-livesync) | [5984](http://localhost:5984/_utils/) | | [Obsidian-LiveSync](https://github.com/vrtmrz/obsidian-livesync) | [5984](http://localhost:5984/_utils/) |
| [Ollama](https://ollama.com/) | [8075 Open WebUI](http://localhost:8075) 11434 Ollama |
| [Olivetin](https://github.com/OliveTin/OliveTin) | [1337](http://localhost:1337) | | [Olivetin](https://github.com/OliveTin/OliveTin) | [1337](http://localhost:1337) |
| [Organizr](https://docs.organizr.app/) | [8777](http://localhost:8777) | | [Organizr](https://docs.organizr.app/) | [8777](http://localhost:8777) |
| [PHPmyAdmin](https://hub.docker.com/_/phpmyadmin) | [8083](http://localhost:8083) | | [PHPmyAdmin](https://hub.docker.com/_/phpmyadmin) | [8083](http://localhost:8083) |

48
ollama/compose.yml Normal file
View File

@ -0,0 +1,48 @@
# https://www.youtube.com/watch?v=OpmMe0md0tA thanks Wolfgang!
# Attention! Huge ~8GB! without model!
name: ollama
services:
webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- 8075:8080/tcp
environment:
- OLLAMA_BASE_URL=http://ollama:11434
volumes:
- ./webui:/app/backend/data
depends_on:
- ollama
networks:
- proxy
ollama:
image: ollama/ollama:rocm
container_name: ollama
ports:
- 11434:11434/tcp
volumes:
- ./ollama:/root/.ollama
# devices: # Linux AMD GPU
# - /dev/kfd
# - /dev/dri
# Windows Nvidia GPU
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
networks:
- proxy
networks:
proxy:
external: true