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

37 lines
1.5 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:-}
OMNIROUTE_API_KEY: ${OMNIROUTE_API_KEY:-sk_omniroute}
REQUIRE_API_KEY: ${REQUIRE_API_KEY:-false}
INITIAL_PASSWORD: ${INITIAL_PASSWORD:?INITIAL_PASSWORD must be seeded by seed-secrets.sh}
API_KEY_SECRET: ${API_KEY_SECRET:?API_KEY_SECRET must be seeded by seed-secrets.sh}
AUTH_SECRET: ${AUTH_SECRET:?AUTH_SECRET must be seeded by seed-secrets.sh}
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET must be seeded by seed-secrets.sh}
ports:
- "127.0.0.1:${OMNIROUTE_PORT:-20128}:20128"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- omniroute-data:/app/data
volumes:
omniroute-data: