Software

Self-Hosting Simplified: 5 Docker Containers You Can Run on Your Everyday Windows PC Without a Server

Typically, my aspirations for a home server come to a halt when I explore the necessary hardware options. A lot of people insist on using a dedicated machine, which is quite challenging if you lack an extra device. However, the reality is that the PC you currently own is capable of managing most tasks. Docker Desktop is compatible with Windows, and numerous handy applications take up minimal space, barely noticeable next to your web browser tabs.

Your storage setup may hinder performance

Among the various suggestions for media streaming, Jellyfin often emerges as a favorite. This free, open-source media server organizes your local movies, television shows, and music, enabling streaming to devices such as your smartphone, smart TV, or web browser. There are no subscriptions or data tracking involved. When operated through Docker Desktop on a regular Windows PC, Jellyfin functions within a lightweight Linux virtual machine managed by Windows.

When it comes to storage, Jellyfin presents some unique challenges. If your media is stored on a Windows drive, like C:\Media, Docker has to navigate the Windows/Linux gap each time Jellyfin accesses it. This transition involves a slower protocol layer compared to using native Linux storage. For instance, scanning a directory with 3,000 files might take around three seconds with this setup, whereas it would happen almost instantaneously with native storage. Moreover, if you are writing video data to that same Windows drive while video playback is happening, stalling can occur until those files are fully saved.

Other than the peculiarities in file naming, Jellyfin is quite satisfactory. While there’s room for improvement, being free makes it hard to voice significant complaints.

Pi-hole will block ads across your network

Windows uses port 53 already

Pi-hole serves as a DNS-level ad blocker for your entire network. When a device queries a website, Pi-hole checks the domain against an extensive blocklist of ad and tracking servers, effectively denying access to the harmful ones. As a result, ads fail to load because the requests are redirected nowhere.

This solution automatically encompasses all devices on your network, including smart TVs and IoT gadgets that may not support browser extensions. It operates efficiently within Docker, typically requiring between 50 to 150 MB of RAM while barely taxing the CPU.

However, setting it up on Windows can present challenges, mainly because it relies on port 53, which is already utilized by Windows services. When Docker attempts to bind Pi-hole to this port, it often results in failure. You may need to disable the Windows Internet Connection Sharing (ICS) service or configure Pi-hole to bind to a specific network address instead of all available ones.

I intermittently disable it to avoid network outages. If your router uses Pi-hole as its sole DNS server and your PC goes into sleep mode or reboots due to updates, every device on your network will lose internet access until the PC wakes and Docker reinitializes.

Vaultwarden is an efficient password manager

HTTPS is essential for functionality

Vaultwarden is an open-source password manager crafted in Rust. Unlike Bitwarden, designed for enterprise use and requiring considerable resources, Vaultwarden offers similar functionality in a single compact binary, usually under 50MB of RAM. It utilizes a SQLite database and is compatible with all Bitwarden applications and browser extensions.

HTTPS is a requirement for this app. Attempting to access Vaultwarden over standard HTTP on a local IP will trigger browsers to block necessary encryption features, leaving the vault non-functional. Mobile applications will not connect to servers without HTTPS.

Vaultwarden securely stores your passwords, notes, and payment details in an encrypted database, providing the full Bitwarden experience for free with minimal resource usage.

However, the risk of data loss is a serious consideration. A failed drive, unexpected power outages, or corruption in the WSL 2 virtual disk could permanently erase your SQLite database.

Syncthing and Photoview are great for photo backup

Cloud alternatives and AI features can be omitted

Syncthing is an open-source file synchronization tool that simplifies the process on your PC. It seamlessly transfers photos from your phone to a basic folder on your computer without requiring cloud services, accounts, or databases. Operating quietly in the system tray, it usually uses well under 200MB of RAM.

Focused solely on file synchronization, Syncthing bypasses AI-driven facial recognition, descriptive searching, and any frustrating timelines. Your photos will simply appear in a typical Windows folder, easily accessible through File Explorer or the Photos application.

Although the official Syncthing app is no longer available, a community fork called Syncthing-Fork continues to work well. If you’re looking for a browsable photo gallery, Photoview can be used alongside it. Photoview scans your folder, creates thumbnails, and operates within Docker, making the pairing highly efficient.

Uptime Kuma monitors your services

It goes offline when your PC is inactive

Uptime Kuma is a self-hosted monitoring dashboard that tracks the operation of your websites, applications, and network devices. It routinely checks HTTP endpoints, performs pings, verifies DNS records, and more according to your set schedule. If a service goes down, it promptly alerts you via Discord, Telegram, email, or several other methods.

This tool complements the other applications listed, allowing you to monitor Jellyfin, Pi-hole, and Vaultwarden from one interface. It’s also capable of overseeing external sites and various devices on your network, maintaining a light footprint of approximately 100 to 200 MB of RAM with minimal CPU usage.

However, the catch is that this monitoring solution resides on the same computer as the services it oversees. Consequently, during sleep, restarts, or Windows updates, Uptime Kuma will also go offline. When your computer resumes, Kuma will flag the downtime accumulated during those inactive periods, leading to potential false alerts. Though, this inconvenience hasn’t deterred me from using it.

Limitations of running on a PC

While operating these services on a regular PC has its advantages, there are constraints. Instances like sleep mode, reboots, and Windows updates can cause temporary disconnections. Thankfully, I haven’t faced any significant issues yet, and I don’t intend to stop using them. If your Windows PC is mostly on, you’re likely equipped for these tasks.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button