version: '3.8'

services:
  ollama:
    image: ollama/ollama
    container_name: ollama
    restart: always
    ports:
      - "11434:11434"
    volumes:
      - ollama:/root/.ollama
    environment:
      - OLLAMA_ORIGINS=*

  kiwix:
    image: ghcr.io/kiwix/kiwix-serve:latest
    container_name: kiwix
    restart: always
    ports:
      - "8888:8080"
    volumes:
      - /mnt/nvme/kiwix:/data
    command: wikipedia_en_wp1-0.8_nopic_2026-04.zim

volumes:
  ollama:
    external: true
