Sign inSign up

hmtanbir/qdrant

By hmtanbir

Updated 28 days ago

Hardened qdrant database

Image
Machine learning & AI
Databases & storage
0

156

hmtanbir/qdrant repository overview

Hardened Qdrant Docker Image

A minimal, secure, and multi-architecture Docker image for Qdrant vector search engine built on top of a hardened scratch container.

Features

  • Minimal Attack Surface: Uses a scratch base with extracted dynamic glibc dependencies.
  • Hardened: Shells (sh, ash) are removed to prevent arbitrary shell executions.
  • Multi-Platform Support: Works on linux/amd64 and linux/arm64.
  • Preconfigured Ports: Exposes HTTP (6333), gRPC (6334), and Cluster/P2P (6335).

Quick Start

1. Build the Docker Image

Build locally using Docker CLI:

docker build -t hmtanbir/qdrant:latest .

To build for a specific Qdrant version:

docker build --build-arg QDRANT_VERSION=1.19.0 -t hmtanbir/qdrant:1.19.0 .
2. Multi-Architecture Build (Buildx)

To build and push multi-architecture images (amd64 and arm64):

docker buildx build \
  --platform linux/amd64,linux/arm64 \
  -t hmtanbir/qdrant:latest \
  --push .

Running the Container

Option A: Using Docker Run
docker run -d \
  --name qdrant \
  -p 6333:6333 \
  -p 6334:6334 \
  -v qdrant_storage:/qdrant/storage \
  -v qdrant_snapshots:/qdrant/snapshots \
  hmtanbir/qdrant:latest
Option B: Using Docker Compose

Start the service with docker-compose:

docker compose up -d

Check status and logs:

# View container status
docker compose ps

# Follow logs
docker compose logs -f

Stop the service:

docker compose down

Port Mappings

PortProtocolPurpose
6333HTTPREST API & Web Dashboard (http://localhost:6333/dashboard)
6334gRPCHigh-performance gRPC API
6335TCPDistributed cluster & P2P communication

Environment Variables

VariableDefaultDescription
QDRANT__SERVICE__HTTP_PORT6333HTTP API port
QDRANT__SERVICE__GRPC_PORT6334gRPC API port
QDRANT__SERVICE__API_KEY(optional)Set to enable API Key authentication
QDRANT__LOG_LEVELINFOLogging level (DEBUG, INFO, WARN, ERROR)
RUN_MODEproductionRuntime mode

Verification & Healthcheck

Verify that Qdrant is running:

# Check health status
curl http://localhost:6333/healthz

# Check cluster info / version
curl http://localhost:6333/

Access the Web Dashboard in your browser at: http://localhost:6333/dashboard

Tag summary

Content type

Image

Digest

sha256:65a0f785e

Size

36.3 MB

Last updated

28 days ago

docker pull hmtanbir/qdrant