Last active
March 18, 2024 10:00
-
-
Save hermanzdosilovic/23f4195587c779ea93499c278ddffbd8 to your computer and use it in GitHub Desktop.
Local Pi-hole
This file contains 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
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: |
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install:
curl -sSL https://gist.githubusercontent.com/hermanzdosilovic/23f4195587c779ea93499c278ddffbd8/raw/install.sh | bash