mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Better compatibility with docker's --link option.
This commit is contained in:
parent
84e2a4ae1c
commit
87a51ef76d
1 changed files with 5 additions and 3 deletions
|
@ -8,10 +8,12 @@ var log = logger.createLogger('db')
|
|||
|
||||
function connect() {
|
||||
return rutil.connect({
|
||||
host: process.env.RETHINKDB_PORT_28015_TCP_ADDR || 'localhost'
|
||||
// These environment variables are exposed when we --link to a
|
||||
// RethinkDB container.
|
||||
host: process.env.RETHINKDB_PORT_28015_TCP_ADDR || '127.0.0.1'
|
||||
, port: process.env.RETHINKDB_PORT_28015_TCP_PORT || 28015
|
||||
, db: process.env.RETHINKDB_DATABASE || 'stf'
|
||||
, authKey: process.env.RETHINKDB_AUTHKEY
|
||||
, db: process.env.RETHINKDB_ENV_DATABASE || 'stf'
|
||||
, authKey: process.env.RETHINKDB_ENV_AUTHKEY
|
||||
})
|
||||
.then(function(conn) {
|
||||
lifecycle.observe(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue