version: '3.8'

services:
  # The Flask Backend
  api:
    build: ./backend  # Path to your Dockerfile
    container_name: flask_api
    restart: always
    ports:
      - "5000:5000"   # Maps VM Port 5000 -> Container Port 5000
    environment:
      - SECRET_KEY=your_secret_key_here
      # Add database URLs here later

  # (Optional) Add a database or cache here easily later
  # redis:
  #   image: redis:alpine
