template.yaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ---
  2. kind: compose
  3. metadata:
  4. name: AdGuard Home
  5. description: |-
  6. Network-wide software for blocking ads and tracking. AdGuard Home operates as a DNS server that
  7. re-routes tracking domains to a "black hole", thus preventing your devices from connecting to those servers.
  8. It features advanced DNS filtering, parental controls, safe browsing, and HTTPS/DNS-over-TLS/DNS-over-QUIC support.
  9. ## Prerequisites
  10. - :info: During the initial setup, AdGuard Home runs an HTTP server on port 3000 to guide you through configuration.
  11. After completing the setup, AdGuard Home switches to the configured HTTP port, and port, consider re-deploying the
  12. service with `initial_setup=false`.
  13. - :warning: If you require DHCP functionality or want AdGuard Home to bind directly to port 53,
  14. you must set `network_mode` to `host` or `macvlan`. Note this exposes all container ports directly on the host.
  15. You can't use `traefik_enabled` in this case!
  16. ## References
  17. - **Project:** https://adguard.com/adguard-home/overview.html
  18. - **Documentation:** https://github.com/AdguardTeam/AdGuardHome/wiki
  19. - **GitHub:** https://github.com/AdguardTeam/AdGuardHome
  20. icon:
  21. provider: selfh
  22. id: adguard-home
  23. version: v0.107.71
  24. author: Christian Lempa
  25. date: '2025-12-11'
  26. tags:
  27. - traefik
  28. - network
  29. - volume
  30. draft: true
  31. spec:
  32. general:
  33. vars:
  34. service_name:
  35. default: "adguardhome"
  36. initial_setup:
  37. description: "Enable initial setup wizard on port 3000"
  38. type: bool
  39. default: true
  40. extra: >
  41. Port 3000 is only used during the initial setup wizard.
  42. After completing setup, AdGuard Home switches to the configured HTTP port and port 3000 becomes inactive.
  43. Set to false if you've already completed the initial setup.
  44. traefik:
  45. vars:
  46. traefik_host:
  47. default: "adguardhome"
  48. network:
  49. vars:
  50. network_mode:
  51. extra: >
  52. Use 'host' mode if you need DHCP functionality or want AdGuard Home to bind directly to port 53.
  53. NOTE: Swarm only supports 'bridge' mode!
  54. network_name:
  55. default: "adguardhome_network"
  56. ports:
  57. vars:
  58. ports_http:
  59. default: 80
  60. ports_https:
  61. default: 443
  62. ports_initial:
  63. description: "Initial setup wizard port"
  64. type: int
  65. default: 3000
  66. needs: ["traefik_enabled=false", "initial_setup=true"]
  67. extra: >
  68. Only used during first-time setup. After configuration, port becomes inactive.
  69. ports_dns:
  70. description: "DNS port"
  71. type: int
  72. default: 53
  73. ports_tls:
  74. description: "DNS over TLS Port"
  75. type: int
  76. default: 853
  77. ports_dnscrypt:
  78. description: "DNSCrypt Port"
  79. type: int
  80. default: 5443