pihole: Initial commit
This commit is contained in:
42
pihole/docker-compose.yml
Normal file
42
pihole/docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: "3.9"
|
||||
|
||||
networks:
|
||||
dns_net:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.20.0.0/16
|
||||
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "8180:80/tcp"
|
||||
hostname: pihole
|
||||
networks:
|
||||
dns_net:
|
||||
ipv4_address: 172.20.0.10
|
||||
environment:
|
||||
- "TZ=Asia/Singapore"
|
||||
- "WEBPASSWORD=${PIHOLE_PASSWORD}"
|
||||
- "DNS1=172.20.0.11#5335"
|
||||
- "DNS2=no"
|
||||
volumes:
|
||||
- "./etc-pihole/:/etc/pihole/"
|
||||
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
|
||||
|
||||
unbound:
|
||||
image: mvance/unbound-rpi:latest
|
||||
container_name: unbound
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./unbound:/opt/unbound/etc/unbound"
|
||||
networks:
|
||||
dns_net:
|
||||
ipv4_address: 172.20.0.11
|
||||
healthcheck:
|
||||
disable: true
|
||||
Reference in New Issue
Block a user