-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
64 lines (60 loc) · 1.42 KB
/
compose.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
#
# Example .env:
# TZ=CHANGEME
# MACVLAN_IPV4_ADDRESS=CHANGEME
# MACVLAN_IPV4_SUBNET=CHANGEME
# FTLCONF_LOCAL_IPV4=CHANGEME
# REV_SERVER_TARGET=CHANGEME
# REV_SERVER_DOMAIN=lan
# REV_SERVER_CIDR=CHANGEME
# WEBPASSWORD=CHANGEME
# TUNNEL_DNS_UPSTREAM=CHANGEME
# VIRTUAL_HOST=pi.hole
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
environment:
TZ:
WEBPASSWORD:
FTLCONF_LOCAL_IPV4:
PIHOLE_DNS_: 127.0.0.1#5053
DNSSEC: "true"
REV_SERVER: "true"
REV_SERVER_TARGET:
REV_SERVER_DOMAIN:
REV_SERVER_CIDR:
VIRTUAL_HOST:
volumes:
- 'pihole:/etc/pihole/'
- 'dnsmasq:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: always
networks:
macvlan:
ipv4_address: ${MACVLAN_IPV4_ADDRESS}
proxy-dns:
image: cloudflare/cloudflared:latest
command: proxy-dns --port=5053 --max-upstream-conns 50
environment:
TUNNEL_DNS_UPSTREAM:
restart: always
network_mode: "container:pihole"
volumes:
pihole:
dnsmasq:
networks:
macvlan:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: ${MACVLAN_IPV4_SUBNET}