diff --git a/docker-compose.yml b/docker-compose.yml index 626ca19..013d4b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,8 +65,10 @@ services: - ./API_DOCUMENTATION.md:/app/API_DOCUMENTATION.md # API documentation - ./yfinance_plus:/app/yfinance_plus # Mount yfinance_plus for development - ./data:/app/data # For data files + mem_limit: 2g + memswap_limit: 2g restart: unless-stopped - command: ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "18000", "--reload", "--limit-concurrency", "20"] + command: ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "18000", "--reload", "--limit-concurrency", "20", "--limit-max-requests", "500"] # Frontend Application frontend: