services: ollama: image: ollama/ollama:latest container_name: ollama restart: unless-stopped # Uses the host network stack (routing/DNS identical to the host, incl. br0) network_mode: "host" volumes: - ollama:/root/.ollama environment: # Keep model in memory a bit (optional) OLLAMA_KEEP_ALIVE: "10m" volumes: ollama: