technitium: add container-host DNS instance for cluster mode with dns02

Deploys a second Technitium instance on the container host (192.168.1.67)
to pair with the existing Pi-based instance at dns02 (192.168.1.45) via
native Technitium v14+ clustering for DNS redundancy.
This commit is contained in:
2026-08-17 01:33:49 +00:00
parent 5d2e43c74e
commit 17030f7647
+30
View File
@@ -0,0 +1,30 @@
services:
technitium:
container_name: technitium
hostname: dns-container
image: docker.io/technitium/dns-server:latest
restart: unless-stopped
environment:
- DNS_SERVER_DOMAIN=dns-container
- DNS_SERVER_LOG_FOLDER_PATH=/var/log/technitium/dns
# Required for clustering: HTTPS admin console, used for node-to-node
# config sync and TLS join. Must NOT be proxied through nginx-proxy-manager
# (TLS must terminate at the node itself for DANE-EE cluster auth).
- DNS_SERVER_WEB_SERVICE_ENABLE_HTTPS=true
- DNS_SERVER_WEB_SERVICE_USE_SELF_SIGNED_CERT=true
ports:
- "5380:5380/tcp" # DNS web console (HTTP) - fronted by NPM
- "53443:53443/tcp" # DNS web console (HTTPS) - cluster node-to-node sync, do not proxy
- "53:53/udp" # DNS service
- "53:53/tcp" # DNS service
volumes:
- /srv/technitium/config:/etc/dns
- /srv/technitium/logs:/var/log/technitium/dns
sysctls:
- net.ipv4.ip_local_port_range=1024 65535
networks:
- npm-network
networks:
npm-network:
external: true