CMD:

docker network create -d macvlan --subnet=<Subnet v. Server>/24 --ip-range=<IP vom PIhole>/32 --gateway=<IP v. Router> -o parent=enp3s0 pihole

 

Portainer:

ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "80:80/tcp"
      - "443:443/tcp"

environment:

      -TZ: Europe/Berlin
      -WEBPASSWORD: 'set a secure'

     -DNS1: 1.1.1.1

     -DNS2: 8.8.8.8

      -ServerIP: <IP vom PI>

      -DNSMASQ_LISTENING: All

volumes:
      - './etc-pihole/:/etc/pihole/'
      - './etc-dnsmasq.d/:/etc/dnsmasq.d/'

networks:

       - pihole