xvector-db-node / Dockerfile
justmotes's picture
Update Dockerfile
59b9d69 verified
raw
history blame contribute delete
540 Bytes
# Use the official Qdrant image
FROM qdrant/qdrant:latest
# 1. Configure Port for Hugging Face (7860)
ENV QDRANT__SERVICE__HTTP_PORT=7860
# 2. Security: Set your API Key
ENV QDRANT__SERVICE__API_KEY="xvector_secret_pass_123"
# 3. Enable Distributed Mode (Required for Custom Sharding)
ENV QDRANT__CLUSTER__ENABLED="true"
# 4. Expose the HTTP Port
EXPOSE 7860
# 5. THE FIX: Explicitly set the P2P URI to localhost
# This tells Qdrant: "I am the first node, and I live at this address."
CMD ["./qdrant", "--uri", "http://127.0.0.1:6335"]