Merge branch 'update-pi-hole' of kemonine/docs into master
This commit is contained in:
commit
b29c823715
|
@ -23,26 +23,6 @@ Add a 2nd ```interface``` line to ```/etc/unbound/unbound.conf```
|
||||||
|
|
||||||
Restart unbound with ```systemctl restart unbound```
|
Restart unbound with ```systemctl restart unbound```
|
||||||
|
|
||||||
## Setup Unbound to start *after* Docker
|
|
||||||
|
|
||||||
*See [here (link)](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-Managing_Services_with_systemd-Unit_Files#brid-Managing_Services_with_systemd-Extending_Unit_Config) for more details.*
|
|
||||||
|
|
||||||
This is mainly here to ensure that unbound starts *after* the Docker network comes up as it's configured to listen on the Docker network. It'll fail to load/restart if the bind address isn't present when it is started.
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
|
|
||||||
mkdir -p /etc/systemd/system/unbound.service.d
|
|
||||||
cat > /etc/systemd/system/unbound.service.d/10-after-docker.conf <<EOF
|
|
||||||
[Unit]
|
|
||||||
Requires=docker.service
|
|
||||||
After=docker.service
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10
|
|
||||||
EOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup Initial Run & Update Script
|
## Setup Initial Run & Update Script
|
||||||
|
|
||||||
A simple update script that will pull the latest Pi Hole Docker image, configure it for auto-run, etc. Note the settings under the ```docker run``` command. You need/want to tweak them lightly.
|
A simple update script that will pull the latest Pi Hole Docker image, configure it for auto-run, etc. Note the settings under the ```docker run``` command. You need/want to tweak them lightly.
|
||||||
|
|
Reference in New Issue