-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.45 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
# Example stack: evade-proxy + a DNSSEC-validating unbound resolver it sits
# in front of + the blocklist/Cloudflare-prefix updater loop.
#
# unbound and blocklist-updater join evade-proxy's network namespace
# (network_mode: "service:evade-proxy") because evade-proxy always dials
# its upstream on 127.0.0.1 (see README "Puertos").
#
# To run this in front of a DNS server that already publishes host ports
# 53/853/... (e.g. AdGuard Home in network_mode: host on the same box),
# add `network_mode: host` to the evade-proxy service, drop its `ports:`
# section, and point that server's upstream DNS at 127.0.0.1:5335.
services:
evade-proxy:
build: .
restart: unless-stopped
env_file:
- evade-proxy.env.example
ports:
- "5335:5335/udp"
- "5335:5335/tcp"
- "5339:5339/tcp"
volumes:
- unbound-conf:/etc/unbound
- evade-state:/var/lib/evade-proxy
- evade-run:/run/evade-proxy
unbound:
build:
context: .
dockerfile: docker/unbound.Dockerfile
restart: unless-stopped
network_mode: "service:evade-proxy"
depends_on:
- evade-proxy
blocklist-updater:
build: .
restart: unless-stopped
entrypoint: ["/opt/xdp-dns-evadeproxy/scripts/docker-update-loop.sh"]
env_file:
- evade-proxy.env.example
network_mode: "service:evade-proxy"
volumes:
- unbound-conf:/etc/unbound
depends_on:
- evade-proxy
volumes:
unbound-conf:
evade-state:
evade-run: