This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

11
pihole/.env Normal file
View file

@ -0,0 +1,11 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Pi-hole
PIHOLE_PORT=
PIHOLE_PASS=
PIHOLE_HOSTIP=

View file

@ -0,0 +1,39 @@
services:
# https://github.com/pi-hole/docker-pi-hole/
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- ${PIHOLE_PORT}:80/tcp
environment:
TZ: UTC
WEBPASSWORD: ${PIHOLE_PASS}
FTLCONF_LOCAL_IPV4: ${PIHOLE_HOSTIP}
DNSMASQ_LISTENING: all
PIHOLE_DNS_: 172.21.200.3#53
volumes:
- ./pihole:/etc/pihole
- ./dnsmasq.d:/etc/dnsmasq.d
networks:
pihole:
ipv4_address: 172.21.200.2
unbound:
container_name: unbound
image: mvance/unbound:latest
restart: unless-stopped
networks:
pihole:
ipv4_address: 172.21.200.3
networks:
pihole:
name: pihole
ipam:
driver: default
config:
- subnet: 172.21.200.0/24