check db host from env in dev (docker)

This commit is contained in:
Sam 2016-04-30 18:18:46 +03:00
parent 76c5520541
commit 18a4c3d892
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@
module.exports = {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
db: {
uri: 'mongodb://localhost/mean-dev',
uri: 'mongodb://'+(process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost')+'/mean-dev',
options: {
user: '',
pass: ''

View File

@ -3,8 +3,6 @@ version: '2'
services:
db:
image: mongo:3.2
volumes:
- mongo-data-wt:/data/db
web:
build: .
volumes: