CallMeTechie
DE Login
Home Products Blog About Contact

Deployment: Raspberry Pi

Deployment · Updated 2 weeks ago

Recommendations

  • Raspberry Pi 3B+ or newer (Pi Zero W has too little RAM for the proxy + multiple listeners)
  • External SSD on USB instead of an SD card (SD cards wear out from constant log writes)
  • Alternatively: read-only root FS with the log volume on tmpfs

SSD-on-USB setup

# 1. Format and mount the USB SSD at /mnt/ssd
sudo mkfs.ext4 /dev/sda1
sudo mkdir /mnt/ssd
sudo mount /dev/sda1 /mnt/ssd

# 2. Move the Docker root dir (saves SD wear)
sudo systemctl stop docker
sudo mv /var/lib/docker /mnt/ssd/docker
sudo ln -s /mnt/ssd/docker /var/lib/docker
sudo systemctl start docker

Log rotation (if no SSD)

Already active in docker-compose.example.yml:

logging:
  driver: json-file
  options:
    max-size: "10m"
    max-file: "3"

NTP check

A Pi without an RTC has to sync NTP on every boot. Recommended: systemd-timesyncd or chrony. Check:

timedatectl status

Should show "System clock synchronized: yes".

Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close