Laradock: Laravel can't connecto to mongo

Created on 12 Aug 2016  路  3Comments  路  Source: laradock/laradock

I enabled installation of mongo extension, and to up apache and mongo, my laravel project do not connect to mongo container, after I down the mongo container and up my mongo local installation and again my laravel project do not connect to mongo.

ConnectionTimeoutException in Collection.php line 666: No suitable servers found (serverselectiontryonceset): [Failed connecting to '127.0.0.1:27017': Connection refused]

Bug

Most helpful comment

@samarhaider try to update project's .env file DB_HOST=mongo

All 3 comments

Have the same problem here:
What have you done to solve this problem? @IgorDePaula

@IgorDePaula How do you resolve this?

@samarhaider try to update project's .env file DB_HOST=mongo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ejblom picture ejblom  路  3Comments

percymamedy picture percymamedy  路  3Comments

danielsdeboer picture danielsdeboer  路  3Comments

nickfan picture nickfan  路  3Comments

SamAriafar picture SamAriafar  路  3Comments