Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .internal/templates/services/pihole/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ const pihole = () => {
"8089:80": 'http'
},
modifyableEnvironment: [
{
key: 'TZ',
value: 'Etc/UTC'
},
{
key: 'WEBPASSWORD',
value: 'password'
},
{
key: 'DNS1',
value: '8.8.8.8'
},
{
key: 'DNS2',
value: '8.8.4.4'
},
{
key: 'INTERFACE',
value: 'eth0'
Expand Down
45 changes: 14 additions & 31 deletions .internal/templates/services/pihole/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,25 @@ pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "8089:80/tcp"
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
# - "443:443/tcp"
- "8089:80/tcp"
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
environment:
- TZ=Etc/UTC
- WEBPASSWORD=%randomAdminPassword%
- DNS1=8.8.8.8
- DNS2=8.8.4.4
# - DNSSEC=false
# - DNS_BOGUS_PRIV=True
# - CONDITIONAL_FORWARDING=False
# - CONDITIONAL_FORWARDING_IP=your_router_ip_here (only if CONDITIONAL_FORWARDING=true)
# - CONDITIONAL_FORWARDING_DOMAIN=optional
# - CONDITIONAL_FORWARDING_REVERSE=optional
# - ServerIP=your_Pi's_IP_here << recommended
# - ServerIPv6= your_Pi's_ipv6_here << Required if using ipv6
# - VIRTUAL_HOST=$ServerIP
# - IPv6=True
- INTERFACE=eth0
# - DNSMASQ_LISTENING=local
- TZ=${TZ:-Etc/UTC}
- WEBPASSWORD=
# see https://sensorsiot.github.io/IOTstack/Containers/Pi-hole/#adminPassword
- INTERFACE=eth0
# see https://github.com/pi-hole/docker-pi-hole#environment-variables
volumes:
- ./volumes/pihole/etc-pihole:/etc/pihole
- ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
- ./volumes/pihole/etc-pihole:/etc/pihole
- ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
- NET_ADMIN
restart: unless-stopped
networks:
- iotstack_nw
- vpn_nw
logging:
options:
max-size: "5m"
Expand Down