StarHunter36016

docker-compose.yaml

Mar 7th, 2026
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. services:
  2. wg-easy:
  3. environment:
  4. - INSECURE=true
  5. - WG_PORT=51820
  6. - PORT=51821
  7. image: ghcr.io/wg-easy/wg-easy:15
  8. container_name: wg-easy
  9. network_mode: host
  10. volumes:
  11. - etc_wireguard:/etc/wireguard
  12. - /lib/modules:/lib/modules:ro
  13. restart: unless-stopped
  14. cap_add:
  15. - NET_ADMIN
  16. - SYS_MODULE
  17. depends_on:
  18. - unbound
  19. - pihole
  20.  
  21. pihole:
  22. container_name: pihole
  23. image: pihole/pihole:latest
  24. network_mode: host
  25. environment:
  26. # Set the appropriate timezone for your location from
  27. # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones, e.g:
  28. TZ: 'America/Chicago'
  29. # Set a password to access the web interface. Not setting one will result in a random password being assigned
  30. FTLCONF_webserver_api_password: 'password123'
  31. FTLCONF_dns_upstreams: '127.0.0.1#5335'
  32. FTLCONF_webserver_port: '8080'
  33. volumes:
  34. # For persisting Pi-hole's databases and common configuration file
  35. - etc_pihole:/etc/pihole
  36. # 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'
  37. - etc_dnsmasq.d:/etc/dnsmasq.d
  38. cap_add:
  39. # See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
  40. # Required if you are using Pi-hole as your DHCP server, else not needed
  41. #- NET_ADMIN
  42. # Required if you are using Pi-hole as your NTP client to be able to set the host's system time
  43. - SYS_TIME
  44. # Optional, if Pi-hole should get some more processing time
  45. - SYS_NICE
  46. depends_on:
  47. - unbound
  48. restart: unless-stopped
  49.  
  50. unbound:
  51. image: klutchell/unbound
  52. network_mode: host
  53. healthcheck:
  54. # Use the drill wrapper binary to reduce the exit codes to 0 or 1 for healthchecks
  55. test: ['CMD', 'drill-hc', '@127.0.0.1', 'dnssec.works']
  56. interval: 30s
  57. timeout: 30s
  58. retries: 3
  59. start_period: 30s
  60. volumes:
  61. - etc_unbound:/etc/unbound
  62. restart: unless-stopped
  63.  
  64. volumes:
  65. etc_wireguard:
  66. etc_pihole:
  67. etc_dnsmasq.d:
  68. etc_unbound:
Advertisement
Add Comment
Please, Sign In to add comment