Last active
September 26, 2018 20:33
-
-
Save epk/de04a528fac644b968c4e9e002131f74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /home/pi/pi-hole/pihole && | |
mkdir -p /home/pi/pi-hole/dnsmasq.d && | |
cd /home/pi/pi-hole && | |
docker run -d \ | |
--name pihole \ | |
--restart=always \ | |
--dns=1.1.1.1 \ | |
--dns=8.8.8.8 \ | |
-p 53:53/tcp -p 53:53/udp -p 80:80 -p 443:443 \ | |
-v "/home/pi/pi-hole/pihole/:/etc/pihole" \ | |
-v "/home/pi/pi-hole/dnsmasq.d/:/etc/dnsmasq.d" \ | |
-e ServerIP="10.0.0.71" \ | |
-e WEBPASSWORD=admin \ | |
-e TZ="America/Winnipeg" \ | |
-e DNS1="1.1.1.1" \ | |
-e DNS2="8.8.8.8" \ | |
-e VIRTUAL_HOST=$ServerIP \ | |
pihole/pihole:v4.0_armhf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment