Update configs to use `docker-compose` hostnames
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
This commit is contained in:
parent
2afd866ec3
commit
0bc2fd8ff6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue