[Docker] Connect to mongodb inside docker container
[Docker] Connect to mongodb inside docker container
Here are ways to connect to mongodb that deployed inside a docker container from another docker container in the same docker-compose file. Here is the Dockerfile FROM node:14 # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ RUN npm install #…
View On WordPress












