mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 13:44:24 +00:00
Improved pi-hole docker notes
This commit is contained in:
@@ -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
2
docker/pi-hole/crontab
Normal 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
|
||||
Reference in New Issue
Block a user