<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Monitoring on Jamy&#39;s Technical Blog</title>
        <link>https://jamyvetter.net/tags/monitoring/</link>
        <description>Recent content in Monitoring on Jamy&#39;s Technical Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <copyright>Jamyson Vetter</copyright>
        <lastBuildDate>Fri, 02 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://jamyvetter.net/tags/monitoring/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>Uptime Kuma on Raspberry Pi: High-Availability Monitoring</title>
        <link>https://jamyvetter.net/posts/uptime-kuma-on-raspberry-pi-high-availability-monitoring/</link>
        <pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate>
        
        <guid>https://jamyvetter.net/posts/uptime-kuma-on-raspberry-pi-high-availability-monitoring/</guid>
        <description>&lt;img src="https://jamyvetter.net/posts/uptime-kuma-on-raspberry-pi-high-availability-monitoring/cover.webp" alt="Featured image of post Uptime Kuma on Raspberry Pi: High-Availability Monitoring" /&gt;&lt;h2 id=&#34;introduction&#34;&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Deploying your own monitoring service is a rewarding step, but understanding
the underlying mechanics is what transforms a simple gadget into a reliable
infrastructure.&lt;/p&gt;
&lt;p&gt;On my Raspberry Pi 4 (Ubuntu Server, 4 GB RAM), I deployed &lt;strong&gt;Uptime Kuma&lt;/strong&gt;
(Node.js application) and &lt;strong&gt;Nginx Proxy Manager&lt;/strong&gt; via Docker, exposing the
monitoring dashboard (&lt;code&gt;up.jamyvetter.net&lt;/code&gt;) over HTTPS.&lt;/p&gt;
&lt;p&gt;In this article, we’ll dissect the setup: how Docker’s virtual networks
(bridges, veth pairs, user-defined networks) route traffic, how services
persist after reboot, and how we configured a wildcard Let’s Encrypt
certificate for an A+ SSL rating.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;1-network-architecture-from-wlan-to-virtual-interfaces&#34;&gt;1. Network Architecture: From WLAN to Virtual Interfaces
&lt;/h2&gt;&lt;p&gt;By default, Docker creates a virtual bridge on the host (&lt;code&gt;docker0&lt;/code&gt;). This acts
like a software switch: each container receives a virtual Ethernet interface
pair (&lt;em&gt;veth&lt;/em&gt; pair), with one peer inside the container network namespace
(typically &lt;code&gt;eth0&lt;/code&gt;) and the other peer attached to a bridge on the host.&lt;/p&gt;
&lt;p&gt;The figure below illustrates this concept: containers connect via their veth
peers to virtual switches on the host, enabling inter-container communication
and network address translation (NAT) to the external network.&lt;/p&gt;
&lt;div style=&#34;text-align: center;&#34;&gt;
  &lt;img src=&#34;https://jamyvetter.net/image/Schéma_Architecture.png&#34;
       alt=&#34;Docker Network Architecture: bridges, veth pairs, and containers&#34;
       style=&#34;width:800px; border-radius:0%;&#34;&gt;
&lt;/div&gt;
&lt;p&gt;In practice, Docker manages network bridges on the host to route container
traffic. For example, on my Pi, &lt;code&gt;ip addr&lt;/code&gt; shows both &lt;code&gt;docker0&lt;/code&gt; and a user-defined
bridge (&lt;code&gt;br-1d79a610db3d&lt;/code&gt;, created for &lt;code&gt;web-network&lt;/code&gt;), alongside the physical
&lt;code&gt;wlan0&lt;/code&gt; interface on the local network:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;7
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ ip addr 
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;3: wlan0: ... inet 192.168.1.34/24 ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;4: docker0: ... inet 172.17.0.1/16 ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;7: br-1d79a610db3d: ... inet 172.18.0.1/16 ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;12: veth04ac56b@if2: ... master docker0 ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;13: vetha092746@if3: ... master br-1d79a610db3d ...
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Here, &lt;code&gt;docker0&lt;/code&gt; (&lt;code&gt;172.17.0.1/16&lt;/code&gt;) is Docker’s default bridge, while
&lt;code&gt;br-1d79a610db3d&lt;/code&gt; (&lt;code&gt;172.18.0.1/16&lt;/code&gt;) is a user-defined bridge network.&lt;/p&gt;
&lt;p&gt;A &lt;em&gt;veth&lt;/em&gt; pair acts like a virtual Ethernet cable spanning two network
namespaces: one peer interface resides inside the container namespace
(typically named &lt;code&gt;eth0&lt;/code&gt; or &lt;code&gt;eth1&lt;/code&gt;), while the opposite peer resides on the
host and is enslaved to a bridge (indicated by &lt;code&gt;master docker0&lt;/code&gt; or
&lt;code&gt;master br-...&lt;/code&gt;). A container can be connected to multiple networks, receiving
an interface for each. In this output, the presence of these two host-side
&lt;code&gt;veth&lt;/code&gt; endpoints simply demonstrates that virtual interfaces are actively
attached to their respective bridges (&lt;code&gt;docker0&lt;/code&gt; and &lt;code&gt;br-1d79a610db3d&lt;/code&gt;),
routing traffic between container namespaces and host networking.&lt;/p&gt;
&lt;p&gt;User-defined networks enable service isolation: containers attached to the same
custom bridge can discover and communicate with each other privately. To expose
services, Docker &lt;em&gt;publishes&lt;/em&gt; container ports onto the host. As shown in the
&lt;code&gt;systemctl status docker&lt;/code&gt; output below, &lt;code&gt;docker-proxy&lt;/code&gt; helper processes bind
the requested ports across both IPv4 (&lt;code&gt;0.0.0.0&lt;/code&gt;) and IPv6 (&lt;code&gt;::&lt;/code&gt;) host sockets:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt; 1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 7
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 8
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt; 9
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;10
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;11
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;12
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;13
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;14
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;15
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;16
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;17
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;18
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;19
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;20
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;byron@serveur-pi:~$ systemctl status docker
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;● docker.service - Docker Application Container Engine
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     Loaded: loaded &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;/usr/lib/systemd/system/docker.service&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; enabled&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; preset: enabled&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     Active: active &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;running&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; since Sat 2025-12-27 18:52:39 CET&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; week &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; day ago
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;TriggeredBy: ● docker.socket
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       Docs: https://docs.docker.com
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   Main PID: &lt;span class=&#34;m&#34;&gt;924&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;dockerd&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      Tasks: &lt;span class=&#34;m&#34;&gt;83&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     Memory: 132.9M &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;peak: 230.1M&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        CPU: 20min 32.488s
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     CGroup: /system.slice/docker.service
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─  &lt;span class=&#34;m&#34;&gt;924&lt;/span&gt; /usr/bin/dockerd -H fd:// --containerd&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/run/containerd/containerd.sock
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17157 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17164 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17179 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port &lt;span class=&#34;m&#34;&gt;81&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;81&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17186 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port &lt;span class=&#34;m&#34;&gt;81&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;81&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17202 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17209 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; -container-ip 172.17.0.3 -container-port &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             ├─17543 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port &lt;span class=&#34;m&#34;&gt;3001&lt;/span&gt; -container-ip 172.17.0.2 -container-port &lt;span class=&#34;m&#34;&gt;3001&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;             └─17549 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port &lt;span class=&#34;m&#34;&gt;3001&lt;/span&gt; -container-ip 172.17.0.2 -container-port &lt;span class=&#34;m&#34;&gt;3001&lt;/span&gt; -use-listen-fd
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Here, the host kernel listens on port 443 and forwards incoming TCP streams to
the Nginx Proxy Manager container. Publishing a Docker port binds the service
to the selected host interfaces. Actual accessibility from the local network or
the Internet still depends on host and network firewall rules.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;2-system-persistence-and-resilience&#34;&gt;2. System Persistence and Resilience
&lt;/h2&gt;&lt;p&gt;A robust monitoring setup must recover automatically after reboots or crashes.
On my Pi, &lt;strong&gt;systemd&lt;/strong&gt; manages the Docker daemon (&lt;code&gt;dockerd&lt;/code&gt;), ensuring the
Docker service starts at boot (&lt;code&gt;Enabled: yes&lt;/code&gt; in &lt;code&gt;systemctl&lt;/code&gt;). Checking
&lt;code&gt;systemctl status docker&lt;/code&gt; confirms Docker has been running continuously since
boot.&lt;/p&gt;
&lt;p&gt;To ensure each container restarts reliably, I configured Docker&amp;rsquo;s restart
policy with &lt;code&gt;restart: always&lt;/code&gt; (or &lt;code&gt;unless-stopped&lt;/code&gt;). Docker will automatically
restart the container if it exits unexpectedly or when the host daemon boots:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ sudo docker inspect uptime-kuma --format &lt;span class=&#34;s1&#34;&gt;&amp;#39;{{.HostConfig.RestartPolicy.Name}}&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;always
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;This confirms the &lt;code&gt;uptime-kuma&lt;/code&gt; container is configured to restart
automatically. In normal operation, these containers consume minimal resources
on the Raspberry Pi. A check via &lt;code&gt;docker stats --no-stream&lt;/code&gt; confirms modest
footprint (~210 MB RAM combined, negligible CPU):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;byron@serveur-pi:~$ sudo docker stats --no-stream
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;CONTAINER ID   NAME                  CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O       PIDS
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;da5c4ea6f827   nginx-proxy-manager   0.08%     98.73MiB / 3.696GiB   2.61%     72.2MB / 18.6MB   0B / 3.67MB     &lt;span class=&#34;m&#34;&gt;27&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;fa44d73c3096   uptime-kuma           0.60%     114MiB / 3.696GiB     3.01%     768MB / 42.2MB    41kB / 1.19GB   &lt;span class=&#34;m&#34;&gt;19&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;With approximately 210 MiB of total memory consumed, over 90% of the host
RAM remains free for additional services and system operations.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;3-ssltls-and-certificate-management&#34;&gt;3. SSL/TLS and Certificate Management
&lt;/h2&gt;&lt;h3 id=&#34;tls-termination-and-http2&#34;&gt;TLS Termination and HTTP/2
&lt;/h3&gt;&lt;p&gt;All HTTPS (TLS) termination is handled by the &lt;strong&gt;Nginx Proxy Manager&lt;/strong&gt; container.
Inside Docker, Nginx Proxy Manager acts as a reverse proxy: it listens on
ports 80 and 443, handles TLS handshakes, and forwards decrypted HTTP requests
to backend containers such as Uptime Kuma over the private Docker network.&lt;/p&gt;
&lt;p&gt;Uptime Kuma itself does not terminate public TLS; it serves HTTP on its
internal Docker port 3001, while Nginx Proxy Manager handles certificate
management and HTTPS termination.&lt;/p&gt;
&lt;p&gt;The NPM configuration confirms this architecture. Its generated proxy host
configuration for &lt;code&gt;up.jamyvetter.net&lt;/code&gt; includes:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;6
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;7
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;8
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;9
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;listen 80&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;listen &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; ssl&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;server_name up.jamyvetter.net&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;http2 on&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssl_certificate /etc/letsencrypt/live/npm-1/fullchain.pem&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssl_certificate_key /etc/letsencrypt/live/npm-1/privkey.pem&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;add_header Strict-Transport-Security &lt;span class=&#34;s2&#34;&gt;&amp;#34;max-age=63072000; preload&amp;#34;&lt;/span&gt; always&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Key points from this configuration:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Port Listening&lt;/strong&gt;: NPM binds ports 80 and 443 and performs the TLS
handshake (&lt;code&gt;listen 443 ssl&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HTTP/2 Enabled&lt;/strong&gt;: &lt;code&gt;http2 on&lt;/code&gt; enables multiplexing over TLS for improved
throughput and lower latency.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TLS Certificate&lt;/strong&gt;: Paths &lt;code&gt;/etc/letsencrypt/live/npm-1/*.pem&lt;/code&gt; point to the
persisted Let&amp;rsquo;s Encrypt keys inside the container volume.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HSTS Directive&lt;/strong&gt;: The header &lt;code&gt;Strict-Transport-Security &amp;quot;max-age=63072000; preload&amp;quot;&lt;/code&gt;
instructs supporting browsers to enforce HTTPS connections for 2 years
(63,072,000 seconds). The &lt;code&gt;preload&lt;/code&gt; flag indicates an intention to submit the
domain to Google&amp;rsquo;s HSTS Preload list (used by major browsers). However,
official submission requires serving the header on the base domain with the
&lt;code&gt;includeSubDomains&lt;/code&gt; directive. In practice, &lt;code&gt;includeSubDomains&lt;/code&gt; must not be
added automatically: it strictly commits all current and future subdomains to
HTTPS, which requires verifying that every internal and external sub-service
fully supports TLS.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Redirect to HTTPS&lt;/strong&gt;: The included &lt;code&gt;force-ssl.conf&lt;/code&gt; ensures inbound HTTP
traffic on port 80 is redirected to HTTPS.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Importantly, &lt;strong&gt;no Apache or Nginx service runs on the host OS itself&lt;/strong&gt;; all web
serving operates inside isolated Docker containers.&lt;/p&gt;
&lt;h3 id=&#34;security-headers-and-cipher-suites&#34;&gt;Security Headers and Cipher Suites
&lt;/h3&gt;&lt;p&gt;Achieving an A+ rating on SSL Labs requires strict transport security and
modern cipher configurations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Strict HSTS&lt;/strong&gt;: Enforces HTTPS connections for 2 years via &lt;code&gt;max-age=63072000&lt;/code&gt;.
Note that activating this header is distinct from formal enrollment in the
browser HSTS Preload list, which requires manual submission on
&lt;a class=&#34;link&#34; href=&#34;https://hstspreload.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;hstspreload.org&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Strong Cipher Suites &amp;amp; TLS Versions&lt;/strong&gt;: Modern ciphers (ECDHE with AES-GCM
or ChaCha20, SHA-256/384) with TLS 1.2 and TLS 1.3 only. Legacy protocols
(TLS 1.0/1.1) are disabled by default.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HTTP→HTTPS Redirection&lt;/strong&gt;: Plain HTTP traffic is automatically upgraded.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSL Session Caching and Request Hardening&lt;/strong&gt;: NPM includes SSL session cache
settings (&lt;code&gt;ssl-cache.conf&lt;/code&gt;) and additional request filtering rules
(&lt;code&gt;block-exploits.conf&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;lets-encrypt-dns-01-challenge-and-remote-access-architecture&#34;&gt;Let’s Encrypt: DNS-01 Challenge and Remote Access Architecture
&lt;/h3&gt;&lt;p&gt;For certificate issuance, I configured Nginx Proxy Manager to use Let’s Encrypt
with a &lt;strong&gt;DNS-01 challenge&lt;/strong&gt; managed through the Cloudflare DNS API. The process
operates as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Certificate Request&lt;/strong&gt;: NPM’s ACME client initiates a certificate order
for &lt;code&gt;*.jamyvetter.net&lt;/code&gt; (&lt;em&gt;wildcard&lt;/em&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DNS-01 Challenge&lt;/strong&gt;: Let’s Encrypt requests proof of domain control through
a specialized DNS TXT record. Using Cloudflare API credentials, NPM
automatically provisions &lt;code&gt;_acme-challenge.jamyvetter.net&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Validation&lt;/strong&gt;: The Let&amp;rsquo;s Encrypt CA queries Cloudflare’s authoritative DNS
servers for that TXT record. Locating the matching token confirms domain
ownership. Using DNS-01 enables wildcard certificates. The certificate
&lt;code&gt;*.jamyvetter.net&lt;/code&gt; covers first-level subdomains such as &lt;code&gt;up.jamyvetter.net&lt;/code&gt;,
but does not automatically cover the apex domain or deeper nested
subdomains.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Certificate Issuance&lt;/strong&gt;: Let’s Encrypt issues the certificate, stored by NPM
under &lt;code&gt;/etc/letsencrypt/live/npm-1/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Renewal&lt;/strong&gt;: NPM checks certificate expiration daily via internal cron and
automates renewals through the same DNS-01 mechanism before the 90-day
validity expires.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&#34;infrastructure-context-cgnat-ipv6-firewall-and-dns-01&#34;&gt;Infrastructure Context: CGNAT, IPv6 Firewall, and DNS-01
&lt;/h4&gt;&lt;p&gt;Understanding the relationship between DNS-01 and network accessibility
requires examining the actual topology of my home infrastructure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;IPv4 and CGNAT&lt;/strong&gt;: My home internet connection (provided by an SFR router)
operates under &lt;strong&gt;Carrier-Grade NAT (CGNAT)&lt;/strong&gt; for IPv4. Because public IPv4
addresses are shared across multiple subscribers, standard inbound IPv4 port
forwarding (NAT) is not available in this configuration.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;IPv6 Connectivity and Firewall Rules&lt;/strong&gt;: IPv6 is fully operational with a
delegated prefix. The Raspberry Pi receives a global IPv6 address on its
local network interface. On the router&amp;rsquo;s IPv6 firewall, a specific rule
named &lt;code&gt;HTTPS-Pi&lt;/code&gt; authorizes inbound TCP traffic on port 443 directed to the
Raspberry Pi&amp;rsquo;s IPv6 address. No inbound rule exists for port 80.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Publication vs. Internet Reachability&lt;/strong&gt;: It is critical not to confuse
Docker port publication with external accessibility. As seen in &lt;code&gt;systemctl status docker&lt;/code&gt;, &lt;code&gt;docker-proxy&lt;/code&gt; binds ports 80, 81, 443, and 3001 locally on the
Pi (&lt;code&gt;0.0.0.0&lt;/code&gt; and &lt;code&gt;[::]&lt;/code&gt;). This allows local routing on the host and LAN, but
incoming traffic from the public Internet is blocked by CGNAT on IPv4 and
strictly filtered on IPv6 (where only TCP 443 is permitted).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The DNS-01 Advantage&lt;/strong&gt;: The standard Let&amp;rsquo;s Encrypt HTTP-01 challenge
requires an inbound HTTP connection on port 80 from the public Internet,
which would fail under an IPv4 CGNAT environment without public port 80
exposure. In contrast, the DNS-01 challenge operates entirely out-of-band at
the DNS level via Cloudflare API calls. Port 80 does not need to be accessible
from Internet, making DNS-01 ideal for domestic and restricted network
environments.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;certificate-verification&#34;&gt;Certificate Verification
&lt;/h3&gt;&lt;p&gt;We can verify the certificate chain and expiration using OpenSSL. The following
historical output shows the certificate issued during the initial deployment,
with a validity period starting on December 28, 2025:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Chain and Expiration Inspection&lt;/strong&gt;:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;5
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;byron@serveur-pi:~$ openssl s_client -connect up.jamyvetter.net:443 -servername up.jamyvetter.net &amp;lt;/dev/null 2&amp;gt;/dev/null &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; openssl x509 -noout -dates -issuer -subject
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;notBefore&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Dec &lt;span class=&#34;m&#34;&gt;28&lt;/span&gt; 00:28:17 &lt;span class=&#34;m&#34;&gt;2025&lt;/span&gt; GMT
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;notAfter&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;Mar &lt;span class=&#34;m&#34;&gt;28&lt;/span&gt; 00:28:16 &lt;span class=&#34;m&#34;&gt;2026&lt;/span&gt; GMT
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;issuer&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;C&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; US, &lt;span class=&#34;nv&#34;&gt;O&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; Let&lt;span class=&#34;err&#34;&gt;&amp;#39;&lt;/span&gt;s Encrypt, &lt;span class=&#34;nv&#34;&gt;CN&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; E8
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;subject&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;CN&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; *.jamyvetter.net
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;SSL Labs Verification&lt;/strong&gt;: Visiting SSL Labs confirms the A+ rating and
details supported protocols and cipher suites.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Certificate Storage&lt;/strong&gt;: Certificates are stored under &lt;code&gt;/etc/letsencrypt/live/npm-1/&lt;/code&gt;,
persisted on a dedicated Docker volume so renewals survive container
re-creations:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;3
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ sudo docker &lt;span class=&#34;nb&#34;&gt;exec&lt;/span&gt; nginx-proxy-manager ls -l /etc/letsencrypt/live/
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;total &lt;span class=&#34;m&#34;&gt;8&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;-rw-r--r-- &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; root root  &lt;span class=&#34;m&#34;&gt;740&lt;/span&gt; Dec &lt;span class=&#34;m&#34;&gt;28&lt;/span&gt; 01:26 README
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;drwxr-xr-x &lt;span class=&#34;m&#34;&gt;2&lt;/span&gt; root root &lt;span class=&#34;m&#34;&gt;4096&lt;/span&gt; Dec &lt;span class=&#34;m&#34;&gt;28&lt;/span&gt; 01:26 npm-1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;The presence of the &lt;code&gt;npm-1&lt;/code&gt; folder confirms the active certificate.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;conclusion-and-best-practices&#34;&gt;Conclusion and Best Practices
&lt;/h2&gt;&lt;p&gt;This technical analysis highlights the system and network layers operating on
a personal Raspberry Pi monitoring server:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Network Isolation&lt;/strong&gt;: User-defined bridge networks allow backend containers
(like Uptime Kuma) to communicate with the reverse proxy over isolated
private subnets, keeping internal HTTP traffic segmented from other host
workloads.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Port Mapping &amp;amp; Exposure&lt;/strong&gt;: Remember that publishing ports via Docker
creates local listening sockets on the host (&lt;code&gt;docker-proxy&lt;/code&gt;), but upstream
reachability from the Internet depends entirely on router firewalls and ISP
NAT architectures (such as CGNAT).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Systemd + Restart Policies&lt;/strong&gt;: Ensure the Docker daemon is enabled on boot.
Use &lt;code&gt;--restart=always&lt;/code&gt; (or &lt;code&gt;unless-stopped&lt;/code&gt;) for persistent services.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Resource Monitoring&lt;/strong&gt;: Use &lt;code&gt;docker stats&lt;/code&gt; to verify memory and CPU
consumption periodically.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TLS Offloading&lt;/strong&gt;: Terminating TLS at the reverse proxy (Nginx Proxy
Manager) simplifies backend container configuration and ensures strong
security headers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Let’s Encrypt with DNS-01&lt;/strong&gt;: For wildcard certificates and environments
where inbound port 80 is not available or desired (such as CGNAT), DNS-01
via DNS API credentials provides an automated, reliable verification path.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By understanding Docker’s network layer, configuring systemd persistence, and
implementing robust TLS parameters, a personal Raspberry Pi becomes a
resilient, well-structured monitoring server.&lt;/p&gt;
&lt;p&gt;Thanks for reading!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Written with passion (and a few command lines) on my Raspberry Pi.&lt;/p&gt;
&lt;/blockquote&gt;</description>
        </item>
        
    </channel>
</rss>
