Skip to content

Commit f47ded3

Browse files
authored
Merge pull request #1176 from pi-hole/update/docker
Update docker compose example
2 parents 097dda2 + 6c487e0 commit f47ded3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/docker/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,22 @@ services:
2424
TZ: 'Europe/London'
2525
# Set a password to access the web interface. Not setting one will result in a random password being assigned
2626
FTLCONF_webserver_api_password: 'correct horse battery staple'
27-
# If using Docker's default `bridge` network setting the dns listening mode should be set to 'all'3
27+
# If using Docker's default `bridge` network setting the dns listening mode should be set to 'all'
2828
FTLCONF_dns_listeningMode: 'all'
2929
# Volumes store your data between container upgrades
3030
volumes:
3131
# For persisting Pi-hole's databases and common configuration file
3232
- './etc-pihole:/etc/pihole'
33-
# For persisting custom dnsmasq config files. Most will not need this, and can be safely removed/commented out
34-
- './etc-dnsmasq.d:/etc/dnsmasq.d'
33+
# Uncomment the below if you have custom dnsmasq config files that you want to persist. Not needed for most starting fresh with Pi-hole v6. If you're upgrading from v5 you and have used this directory before, you should keep it enabled for the first v6 container start to allow for a complete migration. It can be removed afterwards. Needs environment variable FTLCONF_misc_etc_dnsmasq_d: 'true'
34+
#- './etc-dnsmasq.d:/etc/dnsmasq.d'
3535
cap_add:
36+
# See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
3637
# Required if you are using Pi-hole as your DHCP server, else not needed
37-
# See Note On Capabilities below
3838
- NET_ADMIN
39+
# Required if you are using Pi-hole as your NTP client to be able to set the host's system time
40+
- SYS_TIME
41+
# Optional, if Pi-hole should get some more processing time
42+
- SYS_NICE
3943
restart: unless-stopped
4044
```
4145

0 commit comments

Comments
 (0)