Guest User

Untitled

a guest
Feb 17th, 2025
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 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
  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. #- 67:67/udp # Only required if you are using Pi-hole as your DHCP server
  11. - 80:80/tcp
  12. - 443:443/tcp
  13. environment:
  14. TZ: Europe/Budapest
  15. WEBPASSWORD:
  16. # Volumes store your data between container upgrades
  17. volumes:
  18. - /srv/dev-disk-by-uuid-71635791-f504-44aa-a87a-5721717a84cb/Docker/Pihole/etc:/etc/pihole
  19. - /srv/dev-disk-by-uuid-71635791-f504-44aa-a87a-5721717a84cb/Docker/Pihole/dnsmasqd:/etc/dnsmasq.d
  20. # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
  21. dns:
  22. - 127.0.0.1
  23. - 1.1.1.1
  24. cap_add:
  25. - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
  26. restart: unless-stopped
  27. networks:
  28. MyMacVLAN:
  29. ipv4_address: 192.168.0.201 #IP fix
  30. networks:
  31. MyMacVLAN:
  32. external: true
Advertisement
Add Comment
Please, Sign In to add comment