btcpayserver-docker/docker-compose-generator/docker-fragments/opt-add-pihole.yml
Maxime Rousseau ea9abe6301
Yamllint'ed all files and made them compliant. (#379)
Co-authored-by: max <max@RedRapier.local>
2020-10-06 14:17:43 +09:00

23 lines
561 B
YAML

version: '3'
services:
pihole:
restart: unless-stopped
container_name: pihole
image: pihole/pihole:v5.0
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/resolv.conf:/etc/resolv.conf:ro"
- "pihole_datadir:/etc/pihole"
volumes:
pihole_datadir: