*NEW VIDEO* • pihole setup How to create a pihole d...
Showing you how to deploy pihole docker compose file. In this video I am using openmediavault 6 as a operating system but ultimately the container deployment would be the same as this guide since it is based on Docker Compose.
Check out my other videos, have some covering deploying other docker container and OMV as well.
Don't forget to subscribe if you like the content!
*************Start of Docker File*******************
version: "3"
More info at https://github.com/pi-hole/docker-pi-... and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pihole
networks:
pih_network:
ipv4_address: 192.168.1.50 #**Change, use pihole address
environment:
TZ: 'America/Chicago' #**Change to your timezone
WEBPASSWORD: '12345678' #**Password for pihole, used on container creation.
ports:
- "443:443/tcp"
- "53:53/tcp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "53:53/udp"
- "80:80/tcp"
restart: "unless-stopped"
volumes:
- "CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc/pihole:/etc/pihole"
- "CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc/dnsmasq.d:/etc/dnsmasq.d"
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
networks:
pih_network:
driver: macvlan
driver_opts:
parent: enp0s3 #**Change this to your interface
ipam:
config:
- subnet: 192.168.1.0/24 #**Your network subnet
gateway: 192.168.1.1 #**Your network gateway
ip_range: 192.168.1.50/32 #**ip for pihole container
*************End of Docker File*******************