High-Level Data Flow
The three different components serve different purposes; The app is used to validate and process consent data, database is used to store the consent data and NGINX is used to host the static files. The following chart explains the high-level data flow:

Deployment-Specific Data Flows are available on the equivalent installation docs.