Skip to content

Instantly share code, notes, and snippets.

@Lyvendia
Created March 10, 2024 14:52
Show Gist options
  • Save Lyvendia/7a48509d7363e1944b60e624cd20edc9 to your computer and use it in GitHub Desktop.
Save Lyvendia/7a48509d7363e1944b60e624cd20edc9 to your computer and use it in GitHub Desktop.
Ollama with Open-WebUI: docker-compose.yaml

Create a docker-compose.yaml

version: '3.8'
services:
  ollama:
    volumes:
      - ollama:/root/.ollama
    container_name: ollama
    image: docker.io/ollama/ollama:latest

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    volumes:
      - open-webui:/app/backend/data
    environment:
      - OLLAMA_BASE_URL=http://ollama:11434
    ports:
      - 3000:8080

volumes:
  ollama: {}
  open-webui: {}

Create the containers using docker compose or podman compose:

podman compose up -d

Access the WebUI at http://localhost:3000 and create a local account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment