pihole-docker/docker-compose.yml

40 lines
685 B
YAML
Raw Normal View History

2024-02-11 13:00:41 +01:00
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
stop_grace_period: 15s
restart: unless-stopped
hostname: pi.hole
env_file:
- config.env
- passwd.env
volumes:
2024-03-09 18:37:54 +01:00
- ./conf-pihole:/etc/pihole
- ./conf-dnsmasq:/etc/dnsmasq.d
2024-02-11 13:00:41 +01:00
dns:
- 127.0.0.1
- 1.1.1.1
- 1.0.0.1
ports:
- 8999:8999
- 127.0.0.1:53:53/tcp
- 127.0.0.1:53:53/udp
- ::1:53:53/tcp
- ::1:53:53/udp
networks:
- pihole-ipv4
- pihole-ipv6
networks:
pihole-ipv4:
name: pihole-ipv4
external: false
pihole-ipv6:
name: pihole-ipv6
external: false
enable_ipv6: true
ipam:
config:
- subnet: 2001:db8:a::/64
gateway: 2001:db8:a::1