Improved pi-hole docker notes

This commit is contained in:
Michele Cereda
2022-11-02 20:03:23 +01:00
parent 0b83be8053
commit b9b767f25e
4 changed files with 51 additions and 40 deletions

View File

@@ -4,8 +4,11 @@
```sh
# Run on Raspberry Pi.
sudo apt update && sudo apt install -y docker-compose
cd pi-hole && sudo docker-compose up -d
apt update && apt install -y docker-compose
cd pi-hole && docker-compose up -d
# Upgrade Graviton's DB.
docker exec -ti pihole pihole -g
```
## Further readings

2
docker/pi-hole/crontab Normal file
View File

@@ -0,0 +1,2 @@
# Update Graviton's DB once a week.
0 0 * * 0 docker ps -f 'name=pihole' -f 'status=running' -f 'health=healthy' -q | xargs -I{} docker exec {} pihole -g