这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Versionfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1
0.3.2
2 changes: 1 addition & 1 deletion cmd/blast/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var (
Name: "raft-node-id",
Value: raft.DefaultNodeID,
Usage: "Node ID",
EnvVar: "BLAST_NODE_ID",
EnvVar: "BLAST_RAFT_NODE_ID",
}
flRaftDir = cli.StringFlag{
Name: "raft-dir",
Expand Down
26 changes: 13 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
version: '2'
version: '3.7'
services:
blast1:
image: mosuka/blast:latest
restart: always
ports:
- 10000:10000
- 10001:10001
- 10002:10002
- 10000:10000
- 10001:10001
- 10002:10002
environment:
BLAST_BIND_ADDR: blast1:10000
BLAST_GRPC_ADDR: blast1:10001
BLAST_HTTP_ADDR: blast1:10002
BLAST_RAFT_NODE_ID: node1
BLAST_RAFT_NODE_ID: blast1
command: start

blast2:
image: mosuka/blast:latest
restart: always
ports:
- 11000:10000
- 11001:10001
- 11002:10002
- 11000:10000
- 11001:10001
- 11002:10002
environment:
BLAST_BIND_ADDR: blast2:10000
BLAST_GRPC_ADDR: blast2:10001
BLAST_HTTP_ADDR: blast2:10002
BLAST_RAFT_NODE_ID: node2
BLAST_RAFT_NODE_ID: blast2
BLAST_PEER_GRPC_ADDR: blast1:10001
command: start

blast3:
image: mosuka/blast:latest
restart: always
ports:
- 12000:10000
- 12001:10001
- 12002:10002
- 12000:10000
- 12001:10001
- 12002:10002
environment:
BLAST_BIND_ADDR: blast3:10000
BLAST_GRPC_ADDR: blast3:10001
BLAST_HTTP_ADDR: blast3:10002
BLAST_RAFT_NODE_ID: node3
BLAST_RAFT_NODE_ID: blast3
BLAST_PEER_GRPC_ADDR: blast1:10001
command: start