File size: 540 Bytes
edff491
 
 
59b9d69
edff491
 
59b9d69
edff491
 
59b9d69
9464611
 
59b9d69
edff491
 
59b9d69
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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"]