rpi-containers 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. Edit: Services I run:
  7. adguardhome
  8. authelia
  9. bookstack
  10. calibre-web
  11. changedetection
  12. duckdns
  13. fdroid
  14. filebrowser
  15. firefly-iii
  16. freshrss
  17. grocy
  18. hammond
  19. heimdall
  20. homeassistant
  21. homer
  22. jellyfin (transcoding turned off)
  23. linkding
  24. docker-mailserver
  25. mealie
  26. nginx
  27. yt-dlp
  28. navidrome
  29. nextcloud
  30. nitter
  31. openbooks
  32. paperless-ngx
  33. pigallery2
  34. pihole
  35. pinry
  36. portainer
  37. pyload-ng
  38. roundcube
  39. scrutiny
  40. snipe-it
  41. swag
  42. syncthing
  43. ulogger
  44. vandam
  45. vaultwarden
  46. wallabag
  47. watchtower
  48. webssh
  49. youtubedl-material
  50. Plus separate instances of MariaDB, Postgres and Redis for some of these services.