Skip to content

Instantly share code, notes, and snippets.

@hermanzdosilovic
Last active March 18, 2024 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hermanzdosilovic/23f4195587c779ea93499c278ddffbd8 to your computer and use it in GitHub Desktop.
Save hermanzdosilovic/23f4195587c779ea93499c278ddffbd8 to your computer and use it in GitHub Desktop.
Local Pi-hole
version: "3.8"
services:
pihole:
image: pihole/pihole:2024.02.2
environment:
PIHOLE_DNS_: 1.1.1.3;1.0.0.3
TZ: Europe/Zagreb
WEBPASSWORD: admin
volumes:
- data:/etc/pihole
- dnsmasq-data:/etc/dnsmasq.d
ports:
- "127.0.0.1:53:53/tcp"
- "127.0.0.1:53:53/udp"
- "127.0.0.1:80:80"
restart: always
volumes:
data:
dnsmasq-data:
#!/usr/bin/env bash
cd ~
mkdir -p pihole
cd pihole
curl "https://gist.githubusercontent.com/hermanzdosilovic/23f4195587c779ea93499c278ddffbd8/raw/docker-compose.yml" > docker-compose.yml
docker compose up -d
echo "" | docker compose exec -T pihole pihole -a -p
@hermanzdosilovic
Copy link
Author

Install:

curl -sSL https://gist.githubusercontent.com/hermanzdosilovic/23f4195587c779ea93499c278ddffbd8/raw/install.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment