-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathadguard.yml
39 lines (38 loc) · 1.03 KB
/
adguard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3.7'
services:
adguard:
container_name: adguard
image: adguard/adguardhome:latest
cap_add:
- NET_ADMIN
networks:
home_net:
ipv4_address: 192.168.0.53
ports:
- 443/tcp
- 53/tcp
- 53/udp
- 67/udp
- 68/udp
- 68/tcp
- 80/tcp
- 853/tcp
- 3000/tcp
restart: unless-stopped
volumes:
- $USERDIR/adguard/workdir:/opt/adguardhome/work
- $USERDIR/adguard/config:/opt/adguardhome/conf
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.adguard-rtr.entrypoints=https"
- "traefik.http.routers.adguard-rtr.rule=HostHeader(`adguard.$DOMAINNAME`)"
- "traefik.http.routers.adguard-rtr.tls=true"
## Middlewares
- "traefik.http.routers.adguard-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.adguard-rtr.service=adguard-svc"
- "traefik.http.services.adguard-svc.loadbalancer.server.port=3000"
networks:
home_net:
external: true