version: "3.7"

services:  
  app:
    image: node:alpine
    volumes:
      - ./:/app
    working_dir: /app
    depends_on:
      - mongo
    environment:
      NODE_ENV: development
    ports:
      - 8000:8000
    command: npm run start-dev
    
  mongo:
    image: mongo
    expose:
      - 27017
    volumes:
      - ./data/db:/data/db