Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

855 B
Raw Blame
# ©AngelaMos | 2026
# ollama.compose.yml
#
# The OPTIONAL local model booster. lisdex does its whole job without this:
# every command works keyless, and the booster only ever proposes an answer
# that lisdex's own oracles then accept or refuse.
#
# The host port is deliberately NOT 11434. That is Ollama's default, which is
# the one port most likely to be held already by an Ollama you are running
# yourself. The container keeps 11434 internally; only the host side moves.

name: lisdex-ollama

services:
  ollama:
    image: ollama/ollama:latest
    container_name: lisdex-ollama
    init: true
    restart: unless-stopped
    ports:
      - "127.0.0.1:${LISDEX_OLLAMA_PORT:-49327}:11434"
    volumes:
      - ollama-models:/root/.ollama
    environment:
      OLLAMA_KEEP_ALIVE: "30m"
      OLLAMA_MAX_LOADED_MODELS: "1"

volumes:
  ollama-models: