42 lines
737 B
YAML
42 lines
737 B
YAML
|
version: "3.8"
|
||
|
|
||
|
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:
|
||
|
- /home/docker/pihole/conf-pihole:/etc/pihole
|
||
|
- /home/docker/pihole/conf-dnsmasq:/etc/dnsmasq.d
|
||
|
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
|