os containers funcionam normalmente, porem, ao entrar no localhost:3000/seed como mostrado no video a pagina principal nao atualiza.
e gera esse erro:
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: getaddrinfo EAI_AGAIN meu-mongo:27017] alurabooks | (node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongoError: failed to connect to server [meu-mongo:27017] on first connect [MongoError: getaddrinfo EAI_AGAIN meu-mongo:27017] alurabooks | (node:17) [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.
o meu arquivo compose:
version: "3.9"
services:
mongodb:
image: mongo:4.4.6
container_name: meu-mongo
networks:
- compose-bridge
alurabooks:
image: aluradocker/alura-books:1.0
container_name: alurabooks
networks:
- compose-bridge
ports:
- 3000:3000
networks:
compose-bridge:
driver: bridge