From dcbf0873c5785f7d29acd53007d3efbf314e232f Mon Sep 17 00:00:00 2001 From: Minoru Osuka Date: Sat, 8 Sep 2018 23:46:41 +0900 Subject: [PATCH] Fix bug (#13) --- Versionfile | 2 +- cmd/blast/flags.go | 2 +- docker-compose.yml | 26 +++++++++++++------------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Versionfile b/Versionfile index 9e11b32..d15723f 100644 --- a/Versionfile +++ b/Versionfile @@ -1 +1 @@ -0.3.1 +0.3.2 diff --git a/cmd/blast/flags.go b/cmd/blast/flags.go index bdec212..a83e8c0 100644 --- a/cmd/blast/flags.go +++ b/cmd/blast/flags.go @@ -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", diff --git a/docker-compose.yml b/docker-compose.yml index 074c6ed..19bfa4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,31 +1,31 @@ -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 @@ -33,13 +33,13 @@ services: 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