37 lines
817 B
YAML
37 lines
817 B
YAML
|
---
|
||
|
services:
|
||
|
pihole:
|
||
|
container_name: {{ pihole_container_name }}
|
||
|
image: {{ pihole_docker_image }}
|
||
|
hostname: {{ pihole_hostname }}
|
||
|
domainname: {{ pihole_domainname }}
|
||
|
ports:
|
||
|
- "53:53/tcp"
|
||
|
- "53:53/udp"
|
||
|
- "67:67/udp"
|
||
|
- "80:80/tcp"
|
||
|
- "443:443/tcp"
|
||
|
environment:
|
||
|
TZ: {{ pihole_TZ }}
|
||
|
ServerIP: {{ pihole_ip }}
|
||
|
volumes:
|
||
|
- './pihole/:/etc/pihole/'
|
||
|
- './dnsmasq.d/:/etc/dnsmasq.d/'
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
restart: unless-stopped
|
||
|
networks:
|
||
|
pihole-macvlan:
|
||
|
ipv4_address: {{ pihole_ip }}
|
||
|
|
||
|
networks:
|
||
|
pihole-macvlan:
|
||
|
driver: macvlan
|
||
|
driver_opts:
|
||
|
parent: eth0
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: {{ pihole_subnet }}
|
||
|
gateway: {{ pihole_gateway }}
|
||
|
ip_range: {{ pihole_ip }}/32
|