-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.03 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
version: "3"
services:
cloudflared:
container_name: cloudflared
image: visibilityspots/cloudflared:arm
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
pihole_net:
ipv4_address: 10.0.0.2
pi-hole:
container_name: pi-hole
image: pihole/pihole:latest
restart: unless-stopped
ports:
- "80:80/tcp"
- "53:53/tcp"
- "53:53/udp"
- "443:443/tcp"
cap_add:
- NET_ADMIN
environment:
- ServerIP=10.0.0.3
- DNS1='10.0.0.2#5054'
- DNS2=''
- IPv6=false
- TZ=CET
- DNSMASQ_LISTENING=all
- WEBPASSWORD=admin
# Add your own custom hostnames you need for your domain
extra_hosts:
- 'loki.eniac.local:192.168.1.5'
volumes:
- "./config/pihole:/etc/pihole"
- "./config/dnsmasq:/etc/dnsmasq.d"
networks:
pihole_net:
ipv4_address: 10.0.0.3
dns:
- 127.0.0.1
- 192.168.1.5
networks:
pihole_net:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/29