update
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
WEBPASSWORD=e6z1EBVDERIP7
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
# TZ for container timezone
|
||||
TZ=America/New_York
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
services:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "67:67/udp"
|
||||
- "500:80/tcp"
|
||||
# - "443:443/tcp"
|
||||
networks:
|
||||
pihole_internal:
|
||||
ipv4_address: 172.70.9.3
|
||||
pihole:
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
PUID: ${PUID} # Reference PUID from .env
|
||||
PGID: ${PGID} #
|
||||
WEBPASSWORD: ${WEBPASSWORD}
|
||||
PIHOLE_DNS_: '172.70.9.2#5053'
|
||||
DNSMASQ_LISTENING: 'all'
|
||||
VIRTUAL_HOST: pihole.mikemcfetridge.com
|
||||
volumes:
|
||||
- /home/miker/dockerapps/pihole/appdata/pihole/etc:/etc/pihole
|
||||
- /home/miker/dockerapps/pihole/appdata/pihole/etc/dnsmasq.d:/etc/dnsmasq.d
|
||||
- /home/miker/dockerapps/pihole/appdata/pihole/log:/var/log/pihole
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
networks:
|
||||
pihole_internal:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.70.9.0/29
|
||||
name: pihole_internal
|
||||
pihole:
|
||||
external: true
|
||||
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
# Pi-hole - DNS Server and AdBlocker
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
restart: unless-stopped
|
||||
profiles: ["all", "core"]
|
||||
networks:
|
||||
- default
|
||||
# cap_add:
|
||||
# # See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
||||
# # Required if you are using Pi-hole as your DHCP server, else not needed
|
||||
# - NET_ADMIN
|
||||
# # Required if you are using Pi-hole as your NTP client to be able to set the host's system time
|
||||
# - SYS_TIME
|
||||
# # Optional, if Pi-hole should get some more processing time
|
||||
# - SYS_NICE
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
# - "67:67/udp" # DHCP Server
|
||||
- "80:80/tcp" # HTTP
|
||||
# - "123:123/udp" # NTP
|
||||
# - "443:443" # HTTPS
|
||||
volumes:
|
||||
- "/home/miker/dockerapps/pihole/appdata/pihole/etc:/etc/pihole"
|
||||
- "/home/miker/dockerapps/pihole/appdata/pihole/etc/dnsmasq.d:/etc/dnsmasq.d"
|
||||
- "/home/miker/dockerapps/pihole/appdata/pihole/log:/var/log/pihole"
|
||||
environment:
|
||||
# https://docs.pi-hole.net/docker/upgrading/v5-v6/?h=pihole_dns#misc Variables list for v6
|
||||
TZ: ${TZ}
|
||||
FTLCONF_webserver_api_password: !Sucyetat123
|
||||
FTLCONF_dns_listeningMode: 'all'
|
||||
FTLCONF_dns_upstreams: 9.9.9.9;1.1.1.1;192.168.2.5
|
||||
FTLCONF_dns_bogusPriv: "true"
|
||||
FTLCONF_dns_domainNeeded: "true"
|
||||
FTLCONF_dns_domain: home.mikemcfetridge
|
||||
FTLCONF_webserver_interface_theme: "default_dark"
|
||||
# DOCKER-LABELS-PLACEHOLDER
|
||||
@@ -0,0 +1,7 @@
|
||||
#run these commands to fix port bind error
|
||||
|
||||
sudo sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf
|
||||
|
||||
sudo sh -c 'rm /etc/resolv.conf && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf'
|
||||
|
||||
systemctl restart systemd-resolved
|
||||
Reference in New Issue
Block a user