Yes. The Lemmy instance I’m commenting from is running on a Raspberry Pi 4. A couple things you’ll need to consider though:
Any containers / applications you run need to be compiled for arm64. This is way more common now than it used to be, but there are still some things that only work on x86 (like many game servers)
You should hook up external storage to your Pi. You can boot from an SSD via USB 3 and you’ll get way better performance, capacity, and write endurance than an SD card.
RAM will likely be your first limitation. Many services can run well under 4GB, but once you start adding more, it can fill up if you’re not careful.
You probably already knew this, but even though the Pi has WiFi, plug it into the network via Ethernet. As a rule, you should never run servers off WiFi if you can avoid it. You’ll get much better speeds and reliability.
Yea I use a 4GB RPi 4 and it handles several services really well, all running in docker:
Grimoire
Navidrome
Traefik
Seafile + Collabora integration
Gitea
Vaultwarden
Radicale
It idles just under 2GB most of the time so it's doing well.
I switched from raspberry pi and orange pi to a cheap Intel NUC, and I think it's just a much nicer experience.
The pi is great fun, but the HW transcoding on a NUC "just works," and the SSD and 16GB RAM opens a lot of doors. My N100 NUC was less than $150, and it included everything (case, power supply, 500GB SSD).
My pi found new life as an off-site backup: attach a big HDD, set up WireGuard, and have a cronjob do daily rsync and snapshots. I have it set up at in-laws, and it works great.
Yes. I have a 4gb Pi 4 and self-host a Wordpress website, Bookstack, Trilium, Syncthing server and a server to serve images and a couple of other apps which are all internet available through a Cloudflare tunnel. Far from struggling (though admittedly nothing is processor intensive).
Yes. However, hosting things from your home connection will make it difficult for you to visit many websites. Blocklists such as Datadome, Cloudflare, and F5 will give you endless captchas if they detect port 80 or port 443 open.
From several years of experiencing it in person. Datadome was the worst and most consistent. It stopped the moment I switched my webserver onto an exotic port number (above 10,000).
Datadome sent me captchas at every domain they firewalled. After correctly solving, I would always be completely blocked: