-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 955 Bytes
/
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
version: "3"
services:
dnscrypt:
container_name: dnscrypt
build: ./dnscrypt
networks:
pihole_net:
ipv4_address: 10.0.1.2
expose:
- "5300/udp"
- "5300/tcp"
dns:
- 1.1.1.1
volumes:
- ./dnscrypt/config:/opt/dnscrypt-proxy/config
restart: unless-stopped
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
pihole_net:
ipv4_address: 10.0.1.3
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment:
TZ: "Europe/Madrid"
WEBPASSWORD: "admin"
QUERY_LOGGING: "false"
DNS1: "10.0.1.2#5300"
DNS2: "no"
volumes:
- ./pihole/etc-pihole/:/etc/pihole/
- ./pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
dns:
- 1.1.1.1
restart: unless-stopped
depends_on:
- dnscrypt
networks:
pihole_net:
driver: bridge
ipam:
config:
- subnet: 10.0.1.0/24