version: "2.4"

services:
  db:
    image: mongo:4
    container_name: storage
    command: mongod --auth
    ports:
      - 27017:27017
    volumes:
      - ./data:/data/db

# CMD ['mongod']