docker compose.yml - IEEE-Team-3/map GitHub Wiki

version: '3.8'

services:
  backend:
    build: ./server
    ports:
      - "5000:5000"
    volumes:
      - ./server:/app
    environment:
      - MONGO_URI=mongodb://mongo:27017/teamapp
    depends_on:
      - mongo

  frontend:
    build: ./client
    ports:
      - "5173:5173"
    volumes:
      - ./client:/app
    depends_on:
      - backend

  mongo:
    image: mongo:6
    ports:
      - "27017:27017"
    volumes:
      - mongodb:/data/db

volumes:
  mongodb:

Notes:

  • Backend will be accessible at http://localhost:5000
  • Frontend will be accessible at http://localhost:5173
  • MongoDB UI (if added later) can also be attached
⚠️ **GitHub.com Fallback** ⚠️