Update configs to use `docker-compose` hostnames

Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
This commit is contained in:
Drasko DRASKOVIC 2016-08-14 20:07:20 +02:00
parent 2afd866ec3
commit 0bc2fd8ff6
3 changed files with 16 additions and 7 deletions

View File

@ -10,15 +10,15 @@
# MongoDB
###
mongo:
host: "127.0.0.1"
host: "mongo"
port: 27017
db: "test"
db: "mainflux"
###
# InfluxDB
###
influx:
host: "127.0.0.1"
host: "influx"
port: 8086
db: "mainflux"
@ -26,5 +26,5 @@ influx:
# NATS
###
nats:
host: "127.0.0.1"
host: "nats"
port: 4222

View File

@ -10,12 +10,12 @@
# HTTP Server
###
server:
host: "127.0.0.1"
host: "0.0.0.0"
port: 7070
###
# NATS
###
nats:
host: "0.0.0.0"
host: "nats"
port: 4222

View File

@ -8,11 +8,20 @@
var config = {};
/**
* Mosca
* WS Server
*/
config.ws = {
host: '0.0.0.0',
port: 9090,
}
/**
* NATS
*/
config.nats = {
host : 'nats',
port : 4222
}
module.exports = config;