2023-11-14 13:09:28 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
pi_hole:
|
|
|
|
container_name: pi-hole
|
|
|
|
image: pihole/pihole:latest
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
- "314:80/tcp"
|
|
|
|
environment:
|
|
|
|
- WEBPASSWORD=
|
|
|
|
volumes:
|
|
|
|
- <docker directory>/pi-hole:/etc/pihole
|
|
|
|
- <docker directory>/pi-hole/dns:/etc/dnsmasq.d
|
2024-01-09 21:44:54 +00:00
|
|
|
networks:
|
|
|
|
pi-hole:
|
|
|
|
ipv4_address: <static ip>
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
pi-hole:
|
|
|
|
name: pi-hole
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: <subnet>
|