-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.01 KB
/
docker-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
version: "3"
services:
cloudflared:
image: crazymax/cloudflared:2021.11.0
restart: unless-stopped
environment:
TZ: 'America/New_York'
TUNNEL_DNS_PORT: '5053'
TUNNEL_DNS_ADDRESS: '0.0.0.0'
TUNNEL_DNS_UPSTREAM: 'https://1.1.1.1/dns-query,https://1.0.0.1/dns-query,https://dns.quad9.net/dns-query,https://dns9.quad9.net/dns-query'
networks:
lan:
ipv4_address: 10.5.0.5
pihole:
container_name: pihole
image: pihole/pihole:2021.12.1
ports:
- "53:53/tcp"
- "53:53/udp"
- "${PIHOLE_WEB_PORT:-5550}:80/tcp"
environment:
TZ: 'America/New_York'
PIHOLE_DNS_: 10.5.0.5#5053 # Use cloudflared as upstream DNS server
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
restart: unless-stopped
networks:
lan:
ipv4_address: 10.5.0.6
depends_on:
- cloudflared
networks:
lan:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1