# Upstream configuration for load balancing

# Backend FastAPI services
upstream roa_backend {
    server roa-backend:8000 max_fails=3 fail_timeout=30s;
    keepalive 32;
}

# Frontend services (for direct access if needed)
upstream roa_frontend {
    server roa-frontend:3000 max_fails=3 fail_timeout=30s;
    keepalive 32;
}

# Health check backend
upstream health_backend {
    server roa-backend:8000;
    keepalive 2;
}