version: '3.7'
services:
  server:
    build:
      context: ./
      dockerfile: Dockerfile
    image: myapp-node
    container_name: NODEP
    command: node app.js
    volumes:
      - ./server/:/usr/src/app
      - /src/app/node_modules
    ports:
      - "5000:5000"
    depends_on:
      - mongo
    env_file: ./config.env
    environment:
      - NODE_ENV=development
 
  mongo:
    image: mongo
    volumes:
      - data-volume:/data/db
    ports:
      - "27017:27017"
   
volumes:
    data-volume:
    node_modules:
    web-root:
CSS 3 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute