Bom dia pessoal,
Configurei o arquivo yml conforme a vídeo aula, mas na hora de subir tudo, o banco mongo não está conectando conforme o log abaixo:
alurabooks | Server initialiazed on port 3000
alurabooks |
alurabooks | Mongoose! Disconnected from mongodb://meu-mongo:27017/alura-books
alurabooks |
alurabooks | Mongoose! Connection error: MongoError: failed to connect to server [meu-mongo:27017] on first connect [MongoError: connect ECONNREFUSED 172.19.0.2:27017]
alurabooks | (node:22) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongoError: failed to connect to server [meu-mongo:27017] on first connect [MongoError: connect ECONNREFUSED 172.19.0.2:27017]
alurabooks | (node:22) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Eu deixei setado 3000:3000 e também coloquei 8080:3000 mas o banco não consegue se conectar, consigo acessar apenas a página.
Alguém consegue dar um help?