Advertisement
Guest User

Untitled

a guest
May 6th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
  2. services:
  3. pihole:
  4. container_name: pihole-backup
  5. image: pihole/pihole:latest
  6. # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
  7. ports:
  8. - 53:53/tcp
  9. - 53:53/udp
  10. - 8080:80/tcp
  11. #- 443:443/tcp
  12. environment:
  13. TZ: America/
  14. FTLCONF_webserver_api_password:****
  15. # Volumes store your data between container upgrades
  16. volumes:
  17. - /mnt/data/pihole/etc-pihole:/etc/pihole
  18. - /mnt/data/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
  19. # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
  20. cap_add:
  21. - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
  22. restart: unless-stopped
  23. networks: {}
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement