-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (54 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
# See: Dohnut (options passed as environment variables)
# https://help.commons.host/dohnut/cli/#options
dohnut:
container_name: dohnut
image: commonshost/dohnut:latest
# build: .
restart: unless-stopped
networks:
dohnut_pihole:
ipv4_address: 10.0.0.2
environment:
DOHNUT_LISTEN: 10.0.0.2:53000
DOHNUT_BOOTSTRAP: 9.9.9.9 8.8.8.8 1.1.1.1
DOHNUT_DOH: commonshost
DOHNUT_COUNTERMEASURES: spoof-queries spoof-useragent
DOHNUT_CACHE_DIRECTORY: /etc/dohnut
volumes:
- "./etc-dohnut/:/etc/dohnut/"
# See: Docker Pi-hole
# https://github.com/pi-hole/docker-pi-hole
pihole:
depends_on:
- dohnut
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
networks:
dohnut_pihole:
ipv4_address: 10.0.0.3
environment:
# WEBPASSWORD: "set a secure password here or it will be random"
DNS1: 10.0.0.2#53000
DNS2: "no"
dns:
- 127.0.0.1
cap_add:
- NET_ADMIN
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
networks:
dohnut_pihole:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24