Home Server v2
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.