I've recently dockerized my pihole installation.
When I rebuild the container from scratch, I always need to do three additional things that I can't configure in a docker compose file or elsewhere (correct me if I'm wrong).
- Add my favorite blocklists to PiHole
- Add a group called "nohole" for clients that shouldn't be piholed
- Add a few clients to the group by (IP, name)
In order to do all of that using the v6 API, I've written this Python script.
I'm not saying this is a very clean or revolutionary way of doing this, I'm just sharing for other people who are looking to automate their install like this. Should be very adaptable to anything else you want to be doing.
Enjoy, feedback welcome,