About Work Contact

Following an SD card failure on my Raspberry Pi, I migrated my home server to a repurposed laptop running Ubuntu Server, adding network-wide storage and cross-device file synchronization.

Network overview

All personal devices connect through a Tailscale mesh network, providing a secure overlay on top of any physical connection. The server (riserver) acts as the DNS resolver for the mesh. Connected devices forward DNS requests to AdGuard Home on the server, which filters tracking domains before resolving upstream queries.

HOME LAN · 192.168.1.0/24 TAILSCALE MESH · 100.64.0.0/10 riserver 100.86.111.41 Ubuntu Server · 192.168.1.187 AdGuard Home DNS sinkhole · UDP 53 Mesh DNS resolver Samba SMB / CIFS · TCP 445 Network drive + Taildrop target Syncthing Sync · TCP 22000 Continuous bidirectional sync Home Assistant HTTP 8123 · Host network Portainer & Cloudflared Containers & Tunnels riptop 100.99.163.46 Windows 11 harowo@github ipad148 100.94.186.128 iPadOS harowo@github rumero 100.89.92.51 iOS harowo@github desktop 100.111.192.115 Windows 11 harowo@github riripc 100.116.136.61 Windows 11 harowo@github DNS :53 TAILSCALE MESH NETWORK · 6 NODES
Home LAN DNS via AdGuard Home Cloudflare Tunnel Connected device
Why I migrated

Continuous database read and write activity on the Raspberry Pi eventually caused irreversible SD card degradation. Rather than replacing the card, I moved the services to an unused laptop.

Running Ubuntu Server on a laptop provides dedicated NVMe storage instead of flash memory, additional RAM and CPU capacity for Docker workloads, and an integrated battery that functions as an uninterruptible power supply during short power interruptions.

Container stack

The core services carried over from the Pi environment, but every container was rebuilt from a clean docker-compose.yml file. Key services include:

  • Home Assistant: Hub for local smart home automation and device dashboards.
  • AdGuard Home: Network-wide DNS sinkhole providing custom rewrite rules and per-client query logs.
  • Cloudflared: Secure remote ingress through Cloudflare tunnels without opening inbound router ports.
  • Portainer: Web interface for container lifecycle management, volume inspection, and log monitoring.
Portainer container management dashboard

Fig 1. Portainer container management dashboard

Compose files serve as the version-controlled source of truth for service definitions, while Portainer provides quick operational visibility and container controls.

File sharing layer

The file-sharing architecture provides unified access across both local and remote networks.

At the center is a Samba share hosted on the server, functioning as a network drive for devices on the local network. For remote access, Tailscale links client machines to the same private network from anywhere.

Samba share mounted as a network drive

Fig 2. Samba share mounted as a network drive

Using Taildrop, files sent to the server land directly in the Samba incoming directory, making them immediately available on the network drive without manual transfer steps.

For actively edited working folders, Syncthing provides continuous bidirectional synchronization between my laptop and the server directory without depending on third-party cloud storage.

Syncthing web UI showing a shared folder in sync

Fig 3. Syncthing keeping the shared folder in sync across devices

Together, Samba handles low-latency LAN transfers, Taildrop manages ad-hoc file sharing from any network, and Syncthing maintains directory synchronization across active workstations.

Docker networking

Running multiple containerized services on a single host requires configuring distinct Docker network modes.

Samba and Home Assistant require local subnet visibility for device discovery and SMB browsing, so they run with network_mode: host. Internal services remain on isolated bridge networks, avoiding host port conflicts and minimizing network exposure.

Working through this clarified the practical distinction between a container's internal port and its published host port.

Key takeaways

This iteration was built with resilience as the primary constraint. File sharing is divided across dedicated mechanisms (Samba, Taildrop, and Syncthing), and the host runs on solid-state storage rather than flash media. All service definitions reside in version-controlled Compose files, making the environment repeatable and easy to restore.