services:
  mongodb:
    image: mongo:latest
    container_name: mongo
    ports:
      - 27017:27017
    volumes:
      - ./data:/data/db

  api:
    build:
      dockerfile: Dockerfile
    env_file:
      - .env
    command: npm start
    ports:
      - 3000:3000
    volumes:
      - ./:/api
