You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
627 B

version: '3'
services:
pihole:
restart: unless-stopped
container_name: pihole
image: pihole/pihole:v4.4
environment:
ServerIP: "${PIHOLE_SERVERIP:-127.0.0.1}"
VIRTUAL_HOST: pi.hole
VIRTUAL_HOST_NAME: "pihole"
expose:
- "53"
- "67"
- "80"
- "443"
ports:
- "53:53/udp"
volumes:
- "./pihole/02-lan.conf:/etc/dnsmasq.d/02-lan.conf:ro"
- "./pihole/resolv.conf:/etc/resolv.conf:ro"
- "pihole_datadir:/etc/pihole"
volumes:
pihole_datadir: