# PIHA-specific overrides for llm-gateway.
#
# RESOURCE CONTEXT: PIHA (Pi 5, 8 GB) is RAM-bound — HA, Immich and monitoring
# already hold ~6 GB. llm-gateway is a tiny stateless proxy (uvicorn + httpx);
# it must never grow into HA's memory. 256 MB is several times its normal
# resident set, so a breach means a leak — let the cgroup OOM killer restart it.

services:
  llm-gateway:
    mem_limit: 256m
