feat: add ollama service with open webui and logo

This commit is contained in:
Daniel Alves
2024-10-04 11:51:45 -03:00
parent a1d395ff0c
commit 0ca9885ddf
2 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
# documentation: https://docs.openwebui.com
# slogan: Ollama with Open Web UI integrates AI model deployment with a user-friendly interface.
# tags: ollama,ai,models,deployment,open-web-ui,integration
# logo: svgs/ollama.svg
version: "3.9"
services:
ollama-api:
container_name: ollama
image: "ollama/ollama:latest"
volumes:
- "ollama:/root/.ollama"
ports:
- 11434:11434
tty: true
restart: unless-stopped
pull_policy: always
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 30s
timeout: 10s
retries: 3
open-webui:
container_name: open-webui
image: "ghcr.io/open-webui/open-webui:main"
depends_on:
- ollama-api
environment:
- "OLLAMA_API_BASE_URL=http://127.0.0.1:11434"
- SERVICE_FQDN_OLLAMA_8080
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test:
- CMD
- curl
- "-f"
- "http://127.0.0.1:8080"
interval: 30s
timeout: 10s
retries: 3
volumes:
ollama: {}