-
Notifications
You must be signed in to change notification settings - Fork 42
Gateway Configuration
Thiago Bustamante edited this page May 18, 2017
·
21 revisions
Tree Gateway uses a Redis database to store its configurations and to manage all nodes of a tree-gateway cluster.
So, if don't have a redis database already running, install a new one before continue.
For docker users, the easiest way to have a simple standalone redis running is just execute:
$ docker run -p 6379:6379 -d --name redis redis:3.0.7-alpine
$ npm install tree-gateway -g
And now, you can run the gateway through the command:
$ treeGateway -c ./tree-gateway.json
Where, the ./tree-gateway.json
file is the server config file that you must configure, according to tree-gateway.json syntax.
Or, for docker users:
$ docker run --name tree-gateway -p 8000:8000 --link redis:redis -d tree-gateway