rpi-containers 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. https://www.reddit.com/r/selfhosted/comments/vz1te8/selfhosting_50_docker_containers_on_the_raspberry/
  2. Selfhosting 50+ Docker containers on the Raspberry Pi 4
  3. I thought I would share this in case others have faced resource bottlenecks with the Raspberry Pi 4, or are balking at the idea of using it. I have seen questions on this sub about whether the Raspberry Pi 4 is a worthy server for selfhosting. I think this feeds into that discussion.
  4. I currently have 51 Docker containers running on my Raspberry Pi 4 4GB. CPU load typically sits between 1-1.5, memory usage around 75%, and temperature around 65°C with passive cooling (aluminium case; ambient temperature is typically 20-25°C). The Pi boots off an SSD connected via USB3 and has 3 other external hard disks attached to it via USB2/3 for additional storage.
  5. When I initially hit ~45 containers, the Pi would frequently and randomly freeze. I solved that by increasing the swap size from the default 100MB to 8GB using this guide, adapting it for the Raspberry Pi OS. The only difference is the location of the swap file, which for the Raspberry Pi OS is at /var/swap. It has since run smoothly without freezing. Swap usage is typically ~1.7GB.
  6. https://linuxhandbook.com/increase-swap-ubuntu
  7. Edit: Services I run:
  8. adguardhome
  9. authelia
  10. bookstack
  11. calibre-web
  12. changedetection
  13. duckdns
  14. fdroid
  15. filebrowser
  16. firefly-iii
  17. freshrss
  18. grocy
  19. hammond
  20. heimdall
  21. homeassistant
  22. homer
  23. jellyfin (transcoding turned off)
  24. linkding
  25. docker-mailserver
  26. mealie
  27. nginx
  28. yt-dlp
  29. navidrome
  30. nextcloud
  31. nitter
  32. openbooks
  33. paperless-ngx
  34. pigallery2
  35. pihole
  36. pinry
  37. portainer
  38. pyload-ng
  39. roundcube
  40. scrutiny
  41. snipe-it
  42. swag
  43. syncthing
  44. ulogger
  45. vandam
  46. vaultwarden
  47. wallabag
  48. watchtower
  49. webssh
  50. youtubedl-material
  51. Plus separate instances of MariaDB, Postgres and Redis for some of these services.