-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.02 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
---
version: "3"
networks:
dhcp-relay-net:
ipam:
config:
- subnet: 172.31.0.0/16
front-tier:
external: true
volumes:
pihole:
services:
pihole:
image: pihole/pihole:2022.10
container_name: pihole
hostname: pihole
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "53:53/tcp"
- "53:53/udp"
expose:
- 80
env_file:
- .env
volumes:
- pihole:/etc
- ./dnsmasq.d/99-temp.conf:/etc/dnsmasq.d/99-temp.conf:ro
- ./dnsmasq.d/07-dhcp-options.conf:/etc/dnsmasq.d/07-dhcp-options.conf:ro
- ./pihole/custom.list:/etc/pihole/custom.list:ro
- /etc/resolv.conf:/etc/resolv.conf:ro
dns:
- 127.0.0.1
- 1.1.1.1
depends_on:
- dhcphelper
networks:
dhcp-relay-net:
ipv4_address: '172.31.0.10'
front-tier: {}
dhcphelper:
build: ./dhcp-helper
restart: unless-stopped
network_mode: "host"
userns_mode: "host"
command: -s 172.31.0.10
cap_add:
- NET_ADMIN