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:
  qdrant:
    image: qdrant/qdrant:v1.16.3@sha256:0425e3e03e7fd9b3dc95c4214546afe19de2eb2e28ca621441a56663ac6e1f46
    container_name: ods-qdrant
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY:-}
      # Qdrant sends anonymous usage telemetry by default.
      - QDRANT__TELEMETRY_DISABLED=true
    volumes:
      - ./data/qdrant:/qdrant/storage:z
    ports:
      - "127.0.0.1:${QDRANT_PORT:-6333}:6333"
      - "127.0.0.1:${QDRANT_GRPC_PORT:-6334}:6334"
    healthcheck:
      # perl: only HTTP tool in qdrant/qdrant image (no curl/wget)
      test: ["CMD-SHELL", "perl -MIO::Socket::INET -e 'my $$s = IO::Socket::INET->new(q(127.0.0.1:6333)) or exit 1; print $$s qq(GET / HTTP/1.0\\r\\n\\r\\n); exit(<$$s> =~ /200/ ? 0 : 1)'"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 15s
    deploy:
      resources:
        limits:
          cpus: '2.0'
          memory: 1G
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"