my-homelab-configs/infra/ai-stack/docker-compose.yml

31 lines
1.1 KiB
YAML

services:
omniroute:
image: ${OMNIROUTE_IMAGE:-diegosouzapw/omniroute:latest}
container_name: ${OMNIROUTE_CONTAINER_NAME:-omniroute}
restart: unless-stopped
env_file:
- .env
environment:
# Keep local model traffic on the Debian host. Docker Desktop uses this
# hostname automatically; on Linux the extra_hosts entry below maps it to
# the host gateway.
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
OLLAMA_HOST: ${OLLAMA_HOST:-http://host.docker.internal:11434}
# Provider keys are seeded into .env by seed-secrets.sh. Multiple common
# variable names are exported so the gateway keeps working across
# OmniRoute/provider naming changes.
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
OPEN_ROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
NVIDIA_API_KEY: ${NVIDIA_API_KEY:-}
NVIDIA_NIM_API_KEY: ${NVIDIA_API_KEY:-}
ports:
- "${OMNIROUTE_PORT:-20128}:20128"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- omniroute-data:/app/data
volumes:
omniroute-data: