-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-with-pihole.yaml
66 lines (62 loc) · 1.27 KB
/
docker-compose-with-pihole.yaml
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
65
66
version: "3.8"
services:
pihole:
image: pihole/pihole:latest
hostname: pihole
container_name: pihole
ports:
- "53:53/tcp"
- "53:53/udp"
- "8080:80/tcp"
environment:
TZ: 'Asia/Jerusalem'
WEBPASSWORD: PassWord
PIHOLE_DNS_: "10.8.1.3"
volumes:
- /opt/pihole/etc:/etc/pihole/
- /opt/pihole/dnsmasq:/etc/dnsmasq.d/
restart: unless-stopped
networks:
pihole-unbound-dns:
ipv4_address: 10.8.1.2
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
deploy:
resources:
limits:
cpus: '0.50'
memory: 768M
reservations:
cpus: '0.2'
memory: 512M
unbound:
image: andrey0001/unbound-tls:latest
hostname: unbound-tls
container_name: unbound-tls
restart: unless-stopped
volumes:
- /opt/unbound-tls:/etc/unbound/unbound.conf.d
networks:
pihole-unbound-dns:
ipv4_address: 10.8.1.3
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
deploy:
resources:
limits:
cpus: '0.30'
memory: 256M
reservations:
cpus: '0.1'
memory: 128M
networks:
pihole-unbound-dns:
ipam:
config:
- subnet: 10.8.1.0/29