Files
komodo/stacks/technitium_syn02.compose.yml
Komodo Bot 8ff3b875bf Update Technitium compose files to match official example
- Switch from host to bridge networking with port mappings
- Add environment variables for DNS domain, admin password, HTTPS config
- Add hostname (dns01/dns02) and update container names
- Add sysctls for network port range
- Change restart policy to unless-stopped
- Add commented port options for DoT, DoH, DoQ, DHCP
- Maintain Synology-specific settings (mem_limit, cpu_shares, security_opt)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-19 08:12:38 -08:00

36 lines
1.1 KiB
YAML

services:
technitium:
image: technitium/dns-server:latest
container_name: dns02
hostname: dns02
mem_limit: 2g
cpu_shares: 768
security_opt:
- no-new-privileges:true
ports:
- "53:53/udp"
- "53:53/tcp"
- "5380:5380/tcp" # HTTP console
- "53443:53443/tcp" # HTTPS console
# DNS over TLS, HTTPS, QUIC
# - "853:853/udp" # DNS-over-QUIC
# - "853:853/tcp" # DNS-over-TLS
# - "443:443/udp" # DNS-over-HTTPS (HTTP/3)
# - "443:443/tcp" # DNS-over-HTTPS
# - "80:80/tcp" # DNS-over-HTTP
# - "8053:8053/tcp" # DNS-over-HTTPS (alt port)
# DHCP
# - "67:67/udp" # DHCP
volumes:
- /volume2/docker/technitium/config:/etc/dns:rw
environment:
- DNS_SERVER_DOMAIN=dns02.dns-cluster.internal
- DNS_SERVER_ADMIN_PASSWORD=admin
- DNS_SERVER_WEB_SERVICE_ENABLE_HTTPS=true
- DNS_SERVER_WEB_SERVICE_HTTPS_PORT=53443
- DNS_SERVER_WEB_SERVICE_USE_SELF_SIGNED_CERT=true
- TZ=America/Los_Angeles
sysctls:
- net.ipv4.ip_local_port_range=1024 65535
restart: unless-stopped