Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Error connect to mongo in docker #3

@rdeputat

Description

@rdeputat

$ yarn start
yarn run v1.3.2
$ node dist/index.js
{ MongoError: failed to connect to server [localhost:27017] on first connect
at Pool. (/Users/romandeputat/Projects/Test/GraphQL/graphql-mongo/node_modules/mongodb-core/lib/topologies/server.js:326:35)
at Pool.emit (events.js:160:13)
at Connection. (/Users/romandeputat/Projects/Test/GraphQL/graphql-mongo/node_modules/mongodb-core/lib/connection/pool.js:270:12)
at Object.onceWrapper (events.js:255:19)
at Connection.emit (events.js:160:13)
at Socket. (/Users/romandeputat/Projects/Test/GraphQL/graphql-mongo/node_modules/mongodb-core/lib/connection/connection.js:175:49)
at Object.onceWrapper (events.js:255:19)
at Socket.emit (events.js:160:13)
at emitErrorNT (internal/streams/destroy.js:64:8)
at process._tickCallback (internal/process/next_tick.js:152:19)
name: 'MongoError',
message: 'failed to connect to server [localhost:27017] on first connect' }
✨ Done in 1.97s.

https://hub.docker.com/_/mongo/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions