services: ollama-proxy: build: context: . dockerfile: Dockerfile image: ollama-proxy:latest container_name: ollama-proxy ports: - "${PROXY_PORT:-11435}:11435" environment: - OLLAMA_URL=${OLLAMA_URL:-http://host.docker.internal:11434} - PROXY_PORT=11435 - PROXY_TIMEOUT=${PROXY_TIMEOUT:-600} - FORCE_NO_STREAM=${FORCE_NO_STREAM:-true} - LOG_LEVEL=${LOG_LEVEL:-INFO} extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped logging: driver: "json-file" options: max-size: "10m" max-file: "3"