Setup for running pi-hole in docker on asustor NAS
- Install git and docker on NAS
- Login to NAS using ssh.
- clone this repo
> git@github.com:Alecktos/pi-hole-docker-asustor.git
- Create password.env file containing password
- run run.sh to start pi-hole
> sh run.sh
- Check that pi-hole admin ui is running http://yourAsustorIpAddress/admin/index.php
Stop running pi-hole container
> docker-compose down
- Takes down current running container if any.
- Kills
myhttpd
using sudo. Process listens to port 80 and 443, used by pi-hole. - Create and start pi-hole container in background
Create password.env
file with login password WEBPASSWORD=MySecretPassword