Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Update redis and mongo env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Hamerling authored and renaudboyer committed Feb 6, 2018
1 parent 13265f5 commit 89521dc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ ADD . /src

ADD config/db.json.docker /src/config/db.json

ENV HUBLIN_REDIS_HOST redis
ENV HUBLIN_REDIS_PORT 6379
ENV REDIS_HOST redis
ENV REDIS_PORT 6379

EXPOSE 8080

Expand Down
4 changes: 2 additions & 2 deletions backend/core/db/redis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var initialized = false,
client;

var defaultOptions = {
host: process.env.HUBLIN_REDIS_HOST || 'localhost',
port: process.env.HUBLIN_REDIS_PORT || 6379,
host: process.env.REDIS_HOST || 'localhost',
port: process.env.REDIS_PORT || 6379,
client_options: {}
};

Expand Down
4 changes: 2 additions & 2 deletions fixtures/esn-config/data/redis.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const host = process.env.HUBLIN_REDIS_HOST || 'localhost';
const port = process.env.HUBLIN_REDIS_PORT || 6379;
const host = process.env.REDIS_HOST || 'localhost';
const port = process.env.REDIS_PORT || 6379;

module.exports = () => ({
url: `redis://${host}:${port}`
Expand Down
4 changes: 2 additions & 2 deletions test/config/servers-conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ module.exports = {
redis: {
host: 'localhost',
port: 6379,
url: `redis://${process.env.HUBLIN_REDIS_HOST || 'redis'}:6379`
url: `redis://${process.env.REDIS_HOST || 'redis'}:6379`
},

mongodb: {
host: 'mongo',
port: 27017,
dbName: 'tests',
connectionString: `mongodb://${process.env.HUBLIN_MONGO_HOST || 'mongo'}:27017/tests`
connectionString: `mongodb://${process.env.MONGO_HOST || 'mongo'}:27017/tests`
}
};

0 comments on commit 89521dc

Please sign in to comment.