add env 'DOCKER_VOLUME_STORAGE' for volume path customization

This commit is contained in:
L4RM4ND
2023-02-25 14:09:52 +01:00
parent 1d2ab5133b
commit ce70d88893
70 changed files with 167 additions and 168 deletions

View File

@@ -16,8 +16,8 @@ services:
WEBPASSWORD: 'MySecureLoginPasswordForWebApp'
# Volumes store your data between container upgrades
volumes:
- '/mnt/docker-volumes/pihole/data:/etc/pihole'
- '/mnt/docker-volumes/pihole/dnsmasq:/etc/dnsmasq.d'
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/pihole/data:/etc/pihole
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/pihole/dnsmasq:/etc/dnsmasq.d
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed