Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.1 KB
Raw Blame
services:
  brave-search:
    build:
      context: ./extensions/services/brave-search
      dockerfile: Dockerfile
    image: ods-brave-search:local
    container_name: ods-brave-search
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - BRAVE_SEARCH_API_KEY=${BRAVE_SEARCH_API_KEY:-}
      - BRAVE_SEARCH_PORT_INTERNAL=8585
      - BRAVE_SEARCH_SEARXNG_COMPAT=${BRAVE_SEARCH_SEARXNG_COMPAT:-0}
      - BRAVE_SEARCH_TIMEOUT_MS=${BRAVE_SEARCH_TIMEOUT_MS:-8000}
    ports:
      - "127.0.0.1:${BRAVE_SEARCH_PORT:-8585}:8585"
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 128M
        reservations:
          cpus: '0.05'
          memory: 32M
    healthcheck:
      test:
        - CMD
        - node
        - -e
        - "require('http').get('http://127.0.0.1:8585/health',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 5s
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"