Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
|
@@ -1,17 +1,18 @@
|
|
| 1 |
# Use the official Qdrant image
|
| 2 |
FROM qdrant/qdrant:latest
|
| 3 |
|
| 4 |
-
#
|
| 5 |
ENV QDRANT__SERVICE__HTTP_PORT=7860
|
| 6 |
|
| 7 |
-
#
|
| 8 |
ENV QDRANT__SERVICE__API_KEY="xvector_secret_pass_123"
|
| 9 |
|
| 10 |
-
#
|
| 11 |
ENV QDRANT__CLUSTER__ENABLED="true"
|
| 12 |
|
| 13 |
-
# Expose the
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
|
|
|
|
|
| 1 |
# Use the official Qdrant image
|
| 2 |
FROM qdrant/qdrant:latest
|
| 3 |
|
| 4 |
+
# 1. Configure Port for Hugging Face (7860)
|
| 5 |
ENV QDRANT__SERVICE__HTTP_PORT=7860
|
| 6 |
|
| 7 |
+
# 2. Security: Set your API Key
|
| 8 |
ENV QDRANT__SERVICE__API_KEY="xvector_secret_pass_123"
|
| 9 |
|
| 10 |
+
# 3. Enable Distributed Mode (Required for Custom Sharding)
|
| 11 |
ENV QDRANT__CLUSTER__ENABLED="true"
|
| 12 |
|
| 13 |
+
# 4. Expose the HTTP Port
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
# 5. THE FIX: Explicitly set the P2P URI to localhost
|
| 17 |
+
# This tells Qdrant: "I am the first node, and I live at this address."
|
| 18 |
+
CMD ["./qdrant", "--uri", "http://127.0.0.1:6335"]
|