Hi all
I am trying to configure the docker-compose.yaml file for pi-hole, but I keep getting “Additional property xxxxx is not allowed” errors
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- 67:67/udp
- 8080:80/tcp
environment:
TZ: 'Europe/Dublin'
WEBPASSWORD: '********'
volumes:
- './pihole:/etc/pihole'
- './pihole:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
networks:
- pi-hole-net
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
pi-hole-net:
driver: macvlan
driver_opts:
parent: wlp2s0 #**Change this to your interface
ipam:
driver: default
config:
- subnet: 192.168.1.0/24 #**Your network subnet
ip_range: 192.168.1.21/32 #**ip for pihole container
gateway: 192.168.1.1 #**Your network gateway
Where am I going wrong please ?
Thanks in advance