justmotes commited on
Commit
59b9d69
·
verified ·
1 Parent(s): 9464611

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,17 +1,18 @@
1
  # Use the official Qdrant image
2
  FROM qdrant/qdrant:latest
3
 
4
- # Hugging Face Spaces expects the app to run on port 7860
5
  ENV QDRANT__SERVICE__HTTP_PORT=7860
6
 
7
- # SECURITY: Set your API Key here
8
  ENV QDRANT__SERVICE__API_KEY="xvector_secret_pass_123"
9
 
10
- # CRITICAL FIX: Enable Distributed Mode (Cluster of 1) to unlock Sharding APIs
11
  ENV QDRANT__CLUSTER__ENABLED="true"
12
 
13
- # Expose the port
14
  EXPOSE 7860
15
 
16
- # Run Qdrant
17
- CMD ["./qdrant"]
 
 
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"]