
Deploy Pi-hole on Your Own Server
The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content without installing any client-side software.
Want to deploy Pi-hole on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is Pi-hole?
The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content without installing any client-side software.
Self-Host Pi-hole
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
pihole:
image: pihole/pihole:2024.07.0
environment:
TZ: America/Los_Angeles
VIRTUAL_HOST: pihole.your-domain.com
WEBPASSWORD: d417d6f0c0d1
volumes:
- pihole-pihole:/etc/pihole
- pihole-dnsmasq:/etc/dnsmasq.d
ports:
- 53:53
volumes:
pihole-pihole: {}
pihole-dnsmasq: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host Pi-hole?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
pihole/pihole:${version}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"