Expected behavior
CRUD operation on DB like i can do on Docker Toolbox
Actual behavior
info: Mongoose disconnected
error: Mongoose connection error: MongoError: getaddrinfo ENOTFOUND docker.local docker.local:27017
Docker-compose snippet:
go:
build: …/go
image: test/business
container_name: hr-go
volumes:
- …/go/app:/var/www
ports:
- "4002:4002"
environment:
- GO_PORT=4002
- GO_ADDR=docker.local
- DB_PORT=27017
- DB_ADDR=docker.local
command: gulp nodemon
db:
image: mongo:3.2
ports:
- “27017:27017”
Information
Windows 10, latest Docker for Windows