Skip to content

Commit

Permalink
feat: add Ollama AI
Browse files Browse the repository at this point in the history
  • Loading branch information
hugginsio committed Feb 3, 2024
1 parent fc4196f commit e6e1cf6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/ollama_ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ollama AI

Self hosted large language models alongside a nice web UI.

- [Ollama]: run LLMs on your own hardware with a single Go binary (or a Docker container, in this instance).
- [Ollama Web UI]: fancy UI client for interacting with Ollama.

[Ollama]: https://github.com/ollama/ollama/
[Ollama Web UI]: https://github.com/ollama-webui/ollama-webui
47 changes: 47 additions & 0 deletions docker/ollama_ai/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Compose file for Ollama

name: "ollama_ai"
services:
ollama_ai:
image: "ollama/ollama:0.1.23"
container_name: "ollama_ai"
restart: unless-stopped
logging:
driver: "local"
options:
max-file: "3"
max-size: "5m"
ports:
- "11434:11434"
volumes:
- "${PATH_PARENT}/datastore/ollama_ai:/root/.ollama"
ollama_webui:
image: "ghcr.io/ollama-webui/ollama-webui:main"
container_name: "ollama_webui"
restart: unless-stopped
logging:
driver: "local"
options:
max-file: "3"
max-size: "5m"
networks:
- traefik-external
volumes:
- "${PATH_PARENT}/datastore/ollama_webui:/app/backend/data"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-external"
- "traefik.http.routers.ollama_webui.rule=Host(`ai.${DOMAIN_NAME}`)"
- "traefik.http.services.ollama_webui.loadbalancer.server.port=8080"
- "traefik.http.routers.ollama_webui.entrypoints=websecure"
- "traefik.http.routers.ollama_webui.tls=true"
- "homepage.group=Applications"
- "homepage.name=Ollama"
- "homepage.icon=https://avatars.githubusercontent.com/u/151674099"
- "homepage.href=https://ai.${DOMAIN_NAME}"
- "homepage.description=Self hosted large language models."
environment:
- "OLLAMA_API_BASE_URL=http://${IP_ADDRESS}:11434/api"
networks:
traefik-external:
external: true

0 comments on commit e6e1cf6

Please sign in to comment.