-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-with-client.yml
More file actions
62 lines (62 loc) · 1.34 KB
/
docker-compose-with-client.yml
File metadata and controls
62 lines (62 loc) · 1.34 KB
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
version: "3.4"
services:
doh-server:
image: dnsoverhttpsdev/doh-server:latest
volumes:
- ./doh-server:/etc/doh-server
depends_on:
- bind9
restart: always
networks:
dns:
ipv4_address: 10.40.0.10
doh-client:
image: dnsoverhttpsdev/doh-client:latest
volumes:
- ./doh-client:/etc/doh-client
restart: always
networks:
dns:
ipv4_address: 10.40.0.20
bind9:
image: resystit/bind9:latest
volumes:
- ./bind9/named.doh-client.conf:/etc/bind/named.conf
- ./bind9/zones:/etc/bind/zones
- ./bind9/named.conf.local:/etc/bind/named.conf.local
- ./bind9/named.conf.options:/etc/bind/named.conf.options
- bind9:/etc/bind
depends_on:
- doh-client
restart: always
networks:
dns:
ipv4_address: 10.40.0.30
ports:
- "53:53/udp"
- "53:53/tcp"
nginx:
image: nginx:1.15.9-alpine
volumes:
- ./nginx:/etc/nginx:rw
- /etc/letsencrypt:/etc/letsencrypt
- ./dhparam:/etc/dhparam
- ./webroot:/var/www/webroot
depends_on:
- doh-server
restart: always
networks:
dns:
ipv4_address: 10.40.0.40
ports:
- "80:80"
- "443:443"
- "853:853"
volumes:
bind9:
networks:
dns:
driver: bridge
ipam:
config:
- subnet: 10.40.0.0/16