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:
Regularly scheduled Python job running a script – possibly in a docker container
Database (Postgresql, likely) populated by ^^ script
Database is directly accessible via external Next.js App, probably hosted on Vercel
Secure! But still accessible remotely.
Would DietPi and all the possible software cover my bases? I saw the following that seemed right:
VPN…I think
Docker – supports requirement installation and cron jobs
Postgres
Python
Am I missing something awesome, a shortcut, or other? Thanks so much, in advance.
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:
Daily (for now) script that pulls info from API, crunches numbers, stores in Postgresql database
^^ Postgresql database - initialized via python Prisma
External app in “the cloud” (Vercel, probably), serving as a frontend, can access Database
^^ 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.