Feat: deploy nas pihole docker-compose

This commit is contained in:
2022-06-04 06:36:34 +02:00
parent bde73c9601
commit 5b3faafcb1
6 changed files with 83 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
---
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