-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.8"
services:
stubby-default:
image: tschaffter/getdns-stubby:1.6.0
container_name: stubby-default
restart: always
networks:
- dns-default
volumes:
- ./stubby/stubby-default.yml:/usr/local/etc/stubby/stubby.yml:ro
dnsmasq-default:
image: tschaffter/dnsmasq:2.84
container_name: dnsmasq-default
restart: always
command: ["dnsmasq", "-k", "--server", "stubby-default"]
networks:
- dns-default
- dns
volumes:
- ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf:ro
- ./dnsmasq/dnsmasq.d/example.com.conf:/etc/dnsmasq.d/example.com.conf:ro
depends_on:
- stubby-default
# stubby-vlan10:
# image: tschaffter/getdns-stubby:1.6.0
# container_name: stubby-vlan10
# restart: always
# networks:
# - dns-vlan10
# volumes:
# - ./stubby/stubby-iot.yml:/usr/local/etc/stubby/stubby.yml:ro
# dnsmasq-vlan10:
# image: tschaffter/dnsmasq:0.3.0
# container_name: dnsmasq-vlan10
# restart: always
# command: ["dnsmasq", "-k", "--server", "stubby-vlan10"]
# networks:
# - dns-vlan10
# - dns
# volumes:
# - ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf:ro
# - ./dnsmasq/dnsmasq.d/example.com.conf:/etc/dnsmasq.d/example.com.conf:ro
# depends_on:
# - stubby-vlan10
nginx:
image: nginx:1.19.9-alpine
container_name: dns-nginx
restart: always
environment:
- DNSMASQ_DEFAULT_HOST=dnsmasq-default
# - DNSMASQ_VLAN10_HOST=dnsmasq-vlan10
networks:
- dns
ports:
- "53:53/udp"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/templates/events.conf:/etc/nginx/templates/events.conf.template:ro
- ./nginx/templates/stream.conf:/etc/nginx/templates/stream.conf.template:ro
depends_on:
- dnsmasq-default
# - dnsmasq-vlan10
networks:
dns:
dns-default:
# dns-vlan10: