Pi-hole
Pi-hole is a blackhole DNS that you can run locally. It makes it very easy to block certain traffic inside your network that you may not want. Such as Ads, trackers or whatever website you deem should not be allowed on your home network. It can also work as a standalone router as it provides it's own DHCP server.
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
pihole_network:
ipv4_address: 'ipv4_address' #update, assign open ip manually
ports:
- "53:53/tcp"
- "53:53/udp"
- "8080:80/tcp"
environment:
TZ: 'America/Anchorage' # update according to your timezone
WEBPASSWORD: 'goodpassword' #update password
volumes:
- '$HOME/pihole/etc-pihole:/etc/pihole' #update
- '$HOME/pihole/etc-dnsmasq.d:/etc/dnsmasq.d' #update
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
pihole_network:
driver: macvlan
driver_opts:
parent: <interface-on-server>
ipam:
config:
- subnet: changeme/24 #update if needed
gateway: changeme #update if needed