version: '3.8'

services:
  backend:
    build: .
    ports:
      - "3069:3069"
    depends_on:
      - mongo
    environment:
      - MONGODB_URI=mongodb://mongo:27017/urge

  mongo:
    image: mongo:latest
    ports:
      - "27017:27017"
    volumes:
      - mongo-data:/data/db

volumes:
  mongo-data: