Architecture
Overview
This document covers the physical architecture and design of the project. Each major function of the project can be run on different servers, so long as they can connect to each other. Cloudflare tunnels, mesh vpn’s like Tailscale and Netbird, or SASE platforms such as Zscaler; all have methods of connecting to remote servers if hosting on the local-area network (LAN) is not an option.
Weather Terrain Forecast (WTF) has 3 distinct parts: the database, the backend, and the frontend. The database hosted on Supabase holds SQL tables tracking Polycyclic aromatic hydrocarbons (PAHs) and other relevant data. The backend connects various API’s and the database, running the collective data through machine-learning algorithms to create a forecast. The frontend merely serves the rendered data so we can have an easy way to view the forecast. In theory the backend could be modified to serve the data to a QGIS plug-in and run it within the program, rather then relying on yet another website. Potential capstone idea? Perhaps?
WTF is designed with Docker as our method of deployment, but feel free to convert to Portainer or add in a Terraform script. Both the front and backend systems have a Dockerfile and docker-compose.yaml available in the repositories. As for hardware, a handful of users can technically get away with a mini PC running Proxmox on an N150 CPU but please consider that’s the bare-minimum, not the optimal solution.
Hardware
Any modern cpu with 4-8 cores
24GB storage on a SSD (lightweight OS, drivers, dependencies…etc)
16Gb RAM, ideally more is better for the ML-driven portions
Solid GbE internet connection
Optional but recomended - Nvidia GPU
Note: Per-container storage requirements are specified in their respective documentation
Map
Single-Server Setup

Multi-Server Setup

While the maps show Cloudflare for managing wide-area network (WAN) traffic, you can change it to any preferred remote-access and reverse-proxy services.