version: "2" services: pihole: container_name: pihole image: pihole/pihole:latest hostname: pihole #domainname: yourdomain.org # <-- Update # mac_address: d0:ca:ab:cd:xx:xx # <-- Update cap_add: - NET_ADMIN networks: macvlan_NET: # <-- MACVlan Name no need to change, but do not exist previosly. ipv4_address: 192.168.50.21 # <-- Update # dns: # - 127.0.0.1 # - 8.8.8.8 ports: - 443/tcp - 53/tcp - 53/udp - 67/udp - 80/tcp environment: ServerIP: 192.168.50.21 # <-- Update (match ipv4_address) #VIRTUAL_HOST: pihole.yourdomain.org # <-- Update (match hostname + domainname) WEBPASSWORD: 1234 # <-- Add password (if required) DNS1: 1.1.1.1 DNS2: 1.1.1.1 # <-- Change by your prefered DNS service like 1.1.1.1 TZ: TZ=America/Los_Angeles # <-- You need to add in webGUI not here # IPv6: False # <-- You need to add in webGUI not here volumes: - /Symlinks/AppData/pihole:/etc/pihole - /Symlinks/AppDatapihole/dnsmasq.d:/etc/dnsmasq.d restart: unless-stopped networks: macvlan_NET: driver: macvlan driver_opts: parent: br0 ipam: config: - subnet: 192.168.50.0/24 # <-- Update gateway: 192.168.50.1 # <-- Update ip_range: 192.168.50.2/28 # <-- Update