Skip to content

Commit 8a1c664

Browse files
authored
fix: Rename nodes in cluster mode (#161)
1 parent b66b4c5 commit 8a1c664

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

engine/servers/qdrant-cluster-mode/docker-compose.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.7"
22

33
services:
4-
qdrant_node_1:
4+
qdrant-node-0:
55
image: qdrant/qdrant:v1.7.3
66
environment:
77
- QDRANT__SERVICE__GRPC_PORT=6334
@@ -10,43 +10,43 @@ services:
1010
ports:
1111
- "6333:6333"
1212
- "6334:6334"
13-
command: ./qdrant --uri 'http://qdrant_node_1:6335'
13+
command: ./qdrant --uri 'http://qdrant-node-0:6335'
1414
# deploy:
1515
# resources:
1616
# limits:
1717
# cpus: '0.07'
1818

1919

20-
qdrant_node_follower:
20+
qdrant-node-1:
2121
image: qdrant/qdrant:v1.7.3
2222
environment:
2323
- QDRANT__SERVICE__GRPC_PORT=6334
2424
- QDRANT__CLUSTER__ENABLED=true
2525
- QDRANT__CLUSTER__P2P__PORT=6335
2626
depends_on:
27-
- qdrant_node_1
27+
- qdrant-node-0
2828
ports:
2929
- "6433:6333"
3030
- "6434:6334"
31-
command: bash -c "sleep 5 && ./qdrant --bootstrap 'http://qdrant_node_1:6335' --uri 'http://qdrant_node_follower:6335'"
31+
command: bash -c "sleep 5 && ./qdrant --bootstrap 'http://qdrant-node-0:6335' --uri 'http://qdrant-node-1:6335'"
3232
# deploy:
3333
# resources:
3434
# limits:
3535
# cpus: '0.05'
3636

3737

38-
qdrant_node_follower_2:
38+
qdrant-node-2:
3939
image: qdrant/qdrant:v1.7.3
4040
environment:
4141
- QDRANT__SERVICE__GRPC_PORT=6334
4242
- QDRANT__CLUSTER__ENABLED=true
4343
- QDRANT__CLUSTER__P2P__PORT=6335
4444
depends_on:
45-
- qdrant_node_1
45+
- qdrant-node-0
4646
ports:
4747
- "6533:6333"
4848
- "6534:6334"
49-
command: bash -c "sleep 6 && ./qdrant --bootstrap 'http://qdrant_node_1:6335' --uri 'http://qdrant_node_follower_2:6335'"
49+
command: bash -c "sleep 6 && ./qdrant --bootstrap 'http://qdrant-node-0:6335' --uri 'http://qdrant-node-2:6335'"
5050
# deploy:
5151
# resources:
5252
# limits:

0 commit comments

Comments
 (0)