git clone https://github.com/coc0nut/WireGuard-and-Pihole-on-Docker.git \
&& cd WireGuard-and-Pihole-on-Docker \
&& chmod +x *.sh \
&& ./install.sh
It will spin it up automatically regarding to the network environment for the dockerhost running this. It will find your ip for the dockerhost, see what subnet it resides in.
-
The WireGuard container will have an ip of x.x.x.230 and can be adminsitered at http://x.x.x.230:51821
-
The Pihole container will have the ip x.x.x.231 and can be administered at http://x.x.x.231/admin
-
It will automatically set up the routing.
-
Be sure to know your public hostname or ip, a password you would like to use for WG admin and Pihole admin.
-
There is also an uninstall script to undo everything.
./uninstall
will remove everything. Then you can also reinstall with ./install.sh