| Requirements |
|---|
| - Macvlan network LAN |
Technitium is a better alternative to pi-hole. Make sure the macvlan network named:
LANhas been created. If not then create one now
cd /home/myusername/docker
mkdir technitium && cd "$_"
services:
technitium:
image: docker.io/technitium/dns-server:latest
container_name: technitium
hostname: technitium01
environment:
TZ: Etc/UTC
DNS_SERVER_DOMAIN: technitium01
volumes:
- ./config:/etc/dns
- ./logs:/var/log/technitium/dns
cap_add:
- NET_ADMIN # Crucial for DHCP functionality
- NET_RAW # Crucial for DHCP functionality
sysctls:
- net.ipv4.ip_local_port_range=1024 65535
restart: unless-stopped
networks:
LAN:
ipv4_address: 192.168.1.123 # Access the web interface at http://192.168.1.123:5380
networks:
LAN:
external: true
docker compose up -d