Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v committed Apr 1, 2019
1 parent 0b3e646 commit 6dcbc52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:

slave:
image: 'agile6v/squeeze:v0.1.0'
command: 'squeeze slave --grpcMasterAddr=master:9997 --masterAddr=master:9998 --grpcAddr=0.0.0.0:9991 --alsologtostderr -v=2'
command: 'squeeze slave --grpcMasterAddr=master:9997 --httpMasterAddr=master:9998 --alsologtostderr -v=2'
depends_on:
- master
networks:
Expand All @@ -20,7 +20,7 @@ services:

web:
image: 'agile6v/squeeze:v0.1.0'
command: 'squeeze web --type="sqlite" --masterAddr="http://master:9998" --alsologtostderr'
command: 'squeeze web --type="sqlite" --masterAddr="master:9998" --alsologtostderr'
depends_on:
- master
networks:
Expand Down
8 changes: 7 additions & 1 deletion pkg/server/web_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ func (s *WebServer) Initialize(args *ServerArgs) error {
return err
}

// check if the HttpMasterAddr is valid
_, _, err = util.GetHostPort(args.HttpMasterAddr)
if err != nil {
return err
}

api := &api.AppAPI{
MasterAddr: s.args.HttpMasterAddr,
MasterAddr: fmt.Sprintf("http://%v", s.args.HttpMasterAddr),
HTTPAddr: s.args.HTTPAddr,
LocalAddr: ip + ":" + port,
}
Expand Down

0 comments on commit 6dcbc52

Please sign in to comment.