kasak730

original docker-compose.yml

Nov 16th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. ┌─[kas@kas-Artix]─[~/packages/docker]
  2. └──╼ $cat docker-compose.yml
  3. version: "3"
  4.  
  5. # https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
  6.  
  7. services:
  8. pihole:
  9. container_name: kas
  10. image: pihole/pihole:latest
  11. hostname: KAS-7125
  12. # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
  13. ports:
  14. - "53:53/tcp"
  15. - "53:53/udp"
  16. - "67:67/udp"
  17. - "80:80/tcp"
  18. - "443:443/tcp"
  19. environment:
  20. TZ: 'America/Bogota'
  21. WEBPASSWORD: '*************'
  22. ServerIP: '192.168.1.200'
  23. # INTERFACE: 'wlp1s0'
  24.  
  25. # Volumes store your data between container upgrades
  26. volumes:
  27. - './etc-pihole/:/etc/pihole/'
  28. - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
  29. # run `touch ./var-log/pihole.log` first unless you like errors
  30. # - './var-log/pihole.log:/var/log/pihole.log'
  31. dns:
  32. - 127.0.0.1
  33. - 1.1.1.1
  34. # Recommended but not required (DHCP needs NET_ADMIN)
  35. # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
  36. cap_add:
  37. - NET_ADMIN
  38. restart: unless-stopped
  39.  
Advertisement
Add Comment
Please, Sign In to add comment