Is DietPi right for my project?

Hello DietPi community! Would love opinions on whether DietPi would be a good fit. I think so, based on the available software, but I’m kind of new to all of this so a yes/no would be great, or detail if you feel like it. Maybe regular OS is better? Let’s find out?
My project requirements / functionality:

  1. Regularly scheduled Python job running a script – possibly in a docker container
  2. Database (Postgresql, likely) populated by ^^ script
  3. Database is directly accessible via external Next.js App, probably hosted on Vercel
  4. Secure! But still accessible remotely.

Would DietPi and all the possible software cover my bases? I saw the following that seemed right:

  1. VPN…I think
  2. Docker – supports requirement installation and cron jobs
  3. Postgres
  4. Python

Am I missing something awesome, a shortcut, or other? Thanks so much, in advance.

Are you planning on running all that on an inbedded device or a pi type SBC…it should be possible…but would take some configuration and setup

Whatever you like to run inside a container would be independent from DietPi as it’s running inside the Docker container. We provide install script for Docker software to simplify Docker setup. However, creating and running container would be a user task.

We provide install script for native Postgresql database. However it would be an empty database and needs to be configured. If you like to run it inside a Docker container, would be different scenarios.

Depends how you like to access your database remotly. Directly via port forwarding or using a VPN solution.

Depends on the way how you plan to access the system remotely.

Sorry for the lack of info.
Device - Raspberry Pi 4
Intended Functionality:

  1. Daily (for now) script that pulls info from API, crunches numbers, stores in Postgresql database
  2. ^^ Postgresql database - initialized via python Prisma
  3. External app in “the cloud” (Vercel, probably), serving as a frontend, can access Database
  4. ^^ should probably be secure somehow

I was originally leaning toward docker but now realize it’s probably not necessary and more complicated than just using systemd to run the script on startup and on a regular schedule.
Waffling on whether or not I’ll need a server to hand the DB data up to the frontend client, or if it can just connect directly via ip, port, etc.

DietPi seems really cool so far. Just got it installed on the ssd and went through the initial setup.

Thanks a bunch for the replies. Hoping this is exactly what I need.

as already mentioned by @WarHawk, all this would be possible, but requires manual configuration measures on your part.