Initial commit
This commit is contained in:
commit
fbae21c5e1
5 changed files with 63 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
conf-dnsmasq
|
||||
conf-pihole
|
||||
passwd.env
|
16
config.env
Normal file
16
config.env
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Mandatory
|
||||
TZ=Europe/Berlin
|
||||
VIRTUAL_HOST=pi.hole
|
||||
PROXY_LOCATION=pi.hole
|
||||
FTLCONF_LOCAL_IPV4=127.0.0.1
|
||||
# Configuration
|
||||
DNSSEC=true
|
||||
DNS_BOGUS_PRIV=false
|
||||
DNS_FQDN_REQUIRED=true
|
||||
DHCP_ACTIVE=false
|
||||
IPv6=true
|
||||
TEMPERATUREUNIT=c
|
||||
DNSMASQ_LISTENING=all
|
||||
WEB_PORT=8999
|
||||
WEB_BIND_ADDR=0.0.0.0
|
||||
#SKIPGRAVITYBOOT=1
|
41
docker-compose.yml
Normal file
41
docker-compose.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
stop_grace_period: 15s
|
||||
restart: unless-stopped
|
||||
hostname: pi.hole
|
||||
env_file:
|
||||
- config.env
|
||||
- passwd.env
|
||||
volumes:
|
||||
- /home/docker/pihole/conf-pihole:/etc/pihole
|
||||
- /home/docker/pihole/conf-dnsmasq:/etc/dnsmasq.d
|
||||
dns:
|
||||
- 127.0.0.1
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
ports:
|
||||
- 8999:8999
|
||||
- 127.0.0.1:53:53/tcp
|
||||
- 127.0.0.1:53:53/udp
|
||||
- ::1:53:53/tcp
|
||||
- ::1:53:53/udp
|
||||
networks:
|
||||
- pihole-ipv4
|
||||
- pihole-ipv6
|
||||
|
||||
networks:
|
||||
pihole-ipv4:
|
||||
name: pihole-ipv4
|
||||
external: false
|
||||
pihole-ipv6:
|
||||
name: pihole-ipv6
|
||||
external: false
|
||||
enable_ipv6: true
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 2001:db8:a::/64
|
||||
gateway: 2001:db8:a::1
|
1
passwd.env
Normal file
1
passwd.env
Normal file
|
@ -0,0 +1 @@
|
|||
WEBPASSWORD=
|
2
pihole.sh
Executable file
2
pihole.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/sbin/env bash
|
||||
docker compose exec -it pihole pihole $@
|
Loading…
Reference in a new issue