Closed myfreax closed 7 years ago
you named your mongo container mongo
and --link mongodb
shouldn't it be --link mongo
?
@ujibang I think I copied the wrong command line. if mongo container not found, the docker will show warning
docker: Error response from daemon: Could not get container for mongo.
Now,the command line has been fixed, you can according to command line reproduce
Try with name and --link mongodb
I think the address specifie in conf file is mongodb
@huangyanxiong01 did you follow the documentation at https://hub.docker.com/r/softinstigate/restheart/ ?
@mkjsix I konw you recommend to pull mongo:3.2 restheart 3.0.3. but I would like to use the new features of mongodb 3.4.4
@huangyanxiong01 with RESTHeart 3.x you can safely pull Mongodb 3.4, we use it extensively in our tests.
@ujibang thank you, the mongodb container only name "mongodb", if container name "mongo" , the restheart will connect mongodb timeout.I don't think the address specifie in conf file is mongodb, it possible "mongodb" name in code
@huangyanxiong01 if you are pulling the official softinstigate/restheart docker image then the default configuration is taken from https://github.com/SoftInstigate/restheart/tree/master/Docker/etc
so mongo-uri: mongodb://mongodb
@ujibang Yes,thank you,I already understand
reproduce
Now open http:/.locahost:8080/ in browser
Result