From 0a18f6f66076d88a28fa89966e005f49a4ff3416 Mon Sep 17 00:00:00 2001 From: "Alexander L." Date: Thu, 30 Jan 2025 12:19:07 +0100 Subject: [PATCH] App Submission: Ollama (#2114) Co-authored-by: nmfretz --- ollama/data/.gitkeep | 0 ollama/docker-compose.yml | 16 ++++++++++++++++ ollama/exports.sh | 1 + ollama/umbrel-app.yml | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 ollama/data/.gitkeep create mode 100644 ollama/docker-compose.yml create mode 100644 ollama/exports.sh create mode 100644 ollama/umbrel-app.yml diff --git a/ollama/data/.gitkeep b/ollama/data/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ollama/docker-compose.yml b/ollama/docker-compose.yml new file mode 100644 index 000000000..ccdf4f71b --- /dev/null +++ b/ollama/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3.7' + +services: + app_proxy: + environment: + APP_HOST: ollama_ollama_1 + APP_PORT: 11434 + PROXY_AUTH_ADD: "false" + + ollama: + image: ollama/ollama:0.5.7@sha256:7e672211886f8bd4448a98ed577e26c816b9e8b052112860564afaa2c105800e + environment: + OLLAMA_ORIGINS: "*" + volumes: + - ${APP_DATA_DIR}/data:/root/.ollama + restart: on-failure diff --git a/ollama/exports.sh b/ollama/exports.sh new file mode 100644 index 000000000..9a1816d17 --- /dev/null +++ b/ollama/exports.sh @@ -0,0 +1 @@ +export APP_OLLAMA_URL="http://ollama_ollama_1:11434" diff --git a/ollama/umbrel-app.yml b/ollama/umbrel-app.yml new file mode 100644 index 000000000..14370d5a9 --- /dev/null +++ b/ollama/umbrel-app.yml @@ -0,0 +1,39 @@ +manifestVersion: 1 +id: ollama +name: Ollama +tagline: Get up and running with large language models +category: ai +version: "0.5.7" +port: 11434 +description: >- + Ollama allows you to download and run advanced AI models directly on your own hardware. Self-hosting AI models ensures full control over your data and protects your privacy. + + + ⚠️ Before running a model, make sure your device has enough free RAM to support it. Attempting to run a model that exceeds your available memory could cause your device to crash or become unresponsive. Always check the model requirements before downloading or starting it. + + + **Getting Started:** + + The easiest way to get started with Ollama is to install the Open WebUI app from the Umbrel App Store. Open WebUI will automatically connect to your Ollama setup, allowing you to manage model downloads and chat with your AI models effortlessly. + + + **Advanced Setup:** + + If you want to connect Ollama to other apps or devices, here's how: + - Apps running on UmbrelOS: Use ollama_ollama_1 as the host and 11434 as the port when configuring other apps to connect to Ollama. For example, the API Base URL would be: http://ollama_ollama_1:11434. + - Custom Integrations: Connect Ollama to third-party apps or your own code using your UmbrelOS local domain (e.g., http://umbrel.local:11434) or your device's IP address, which you can find in the UmbrelOS Settings page (e.g., http://192.168.4.74:11434). +developer: Ollama +website: https://ollama.com/ +submitter: al-lac +submission: https://github.com/getumbrel/umbrel-apps/pull/2114 +repo: https://github.com/ollama/ollama +support: https://github.com/ollama/ollama/issues +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +defaultUsername: "" +defaultPassword: "" +dependencies: [] +releaseNotes: "" +path: ""