Puppeteer Course

Learning Path

https://docs.docker.com/engine/reference/commandline/swarm_init/

  1. login as root via putty
  2. docker swarm init
  3. reboot
  4. systems -> general settings -> change port 80 to 81
  5. create folders in appdata shared folders -> Pihole -> etc-pihole and etc-dnsmasq.d
  6. create stack
version: "3"

services:
  pihole:
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "80:80/tcp"
      - "443:443/tcp"
    environment:
      TZ: 'Asia/Karachi'
      WEBPASSWORD: 'password' #Your Password Goes Here
      ServerIP: '192.168.1.238' #Your Server IP Goes Here
    volumes:
       - '/srv/dev-disk-by-label-Files/Config/Pihole/etc-pihole/:/etc/pihole/' #Your Path Goes BEFORE the :
       - '/srv/dev-disk-by-label-Files/Config/Pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/' #Your Path Goes BEFORE the :
    dns:
      - 127.0.0.1
      - 1.1.1.1
    # Recommended but not required (DHCP needs NET_ADMIN)
    # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN
    restart: unless-stopped

Offical Pihole Page