version: '3'

services:
  app:
    build: .
    ports:
      - "5000:5000"
    volumes:
      - ./logs:/app/logs
      - ./reports:/app/reports
    environment:
      - FLASK_ENV=production
      - FLASK_APP=src/app.py
    restart: always
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 1G 