mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
update dns
This commit is contained in:
parent
a589db8d23
commit
79cb263f96
@ -2,6 +2,9 @@ version: "3.8"
|
||||
services:
|
||||
dnscrypt-proxy:
|
||||
image: vimagick/dnscrypt-proxy
|
||||
build:
|
||||
args:
|
||||
- DNSCRYPT_PROXY_ARCH=x86_64
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
|
@ -16,4 +16,4 @@ EXPOSE 53/tcp \
|
||||
53/udp \
|
||||
67/udp
|
||||
|
||||
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
|
||||
ENTRYPOINT ["dnsmasq", "--keep-in-foreground", "--user=dnsmasq", "--group=dnsmasq"]
|
||||
|
19
dnsmasq/dns/README.md
Normal file
19
dnsmasq/dns/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
How It Works
|
||||
============
|
||||
|
||||
- client: [great firewall](https://en.wikipedia.org/wiki/Great_Firewall)
|
||||
- dnsmasq: frontend
|
||||
- dnscrypt-proxy: backend
|
||||
- internet: [free world](https://en.wikipedia.org/wiki/Free_World)
|
||||
|
||||
```
|
||||
☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭
|
||||
☭ ┌────────────┐ ┌────────────┐ ┌──────────────────┐ ☭ ┌────────────┐
|
||||
☭ │ │ │ │ │ │ ☭ │ │
|
||||
☭ │ client ├──────►│ dnsmasq ├─────►│ dnscrypt-proxy │─────☭────►│ internet │
|
||||
☭ │ │ │ │ │ │ ☭ │ │
|
||||
☭ └────────────┘ └────────────┘ └──────────────────┘ ☭ └────────────┘
|
||||
☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭☭
|
||||
```
|
||||
|
||||
> Created by <https://asciiflow.com/>
|
38
dnsmasq/dns/docker-compose.yml
Normal file
38
dnsmasq/dns/docker-compose.yml
Normal file
@ -0,0 +1,38 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
dnsmasq:
|
||||
image: vimagick/dnsmasq
|
||||
command: >
|
||||
--cache-size=10000
|
||||
--interface=eth0
|
||||
--log-facility=-
|
||||
--log-queries
|
||||
--no-dhcp-interface=eth0
|
||||
--no-hosts
|
||||
--no-resolv
|
||||
--server=192.168.99.53
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
depends_on:
|
||||
- dnscrypt-proxy
|
||||
restart: unless-stopped
|
||||
|
||||
dnscrypt-proxy:
|
||||
image: vimagick/dnscrypt-proxy
|
||||
volumes:
|
||||
- ./data:/etc/dnscrypt-proxy
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 192.168.99.53
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 192.168.99.0/24
|
||||
gateway: 192.168.99.1
|
Loading…
Reference in New Issue
Block a user