Install
直接使用下面
docker-compose.yaml
启动服务:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15version: '3.7'
services:
adguard:
image: adguard/adguardhome
container_name: adguard
restart: always
labels:
- traefik.http.routers.adguard.rule=Host(`adguard.domain.com`)
- traefik.http.routers.adguard.entrypoints=websecure
- traefik.http.routers.adguard.service=adguard
- traefik.http.services.adguard.loadbalancer.server.port=3000
network_mode: host
volumes:
- ./config:/opt/adguardhome/conf使用浏览器打开页面 https://adguard.domain.com ,根据向导初始化 AdGuard 服务
修改
config/AdGuardHome.yaml
文件,将bind_port
修改为3000
,然后重启服务再次打开网页 https://adguard.domain.com ,进入 Dashboard 页面
进一步设置
1 | * AdGuard Home 设置 |
上游 DNS 服务
1 | tls://dns.google |
Bootstrap DNS 服务器
1 | 9.9.9.9 |
DNS 封锁清单
启用默认的拦截清单,并添加以下阻止列表: