I am trying to deploy my express.js MongoDB application on an ubuntu vps using docker however docker tells me this when I use docker compose up I have a mongoDB service dependent on the express.js application as well.
my Dockerfile looks like this
# USE ALPINE LINUX
FROM node:alpine
# CREATE A WORKING DIR
WORKDIR /user/src/app
# COPY package.json to working dir
COPY package*.json .
# install packages
RUN npm ci
# copy everything from here to working dir
COPY . .
# Development
# CMD ["npm", "run", "dev"]
# Production
CMD [ "npm", "start" ]