update dnsmasq (FIX #202)

This commit is contained in:
kev 2022-08-19 17:37:46 +08:00
parent 566f5c6742
commit fd0f973be8
13 changed files with 15 additions and 69 deletions

View File

@ -2,9 +2,9 @@
# Dockerfile for dnsmasq
#
FROM alpine
FROM alpine:3
MAINTAINER kev <norelply@easypi.pro>
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache dnsmasq-dnssec \

View File

@ -4,20 +4,4 @@ dnsmasq
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
Protocol server for small computer networks, created as free software.
## docker-compose.yml
```yaml
dnsmasq:
image: vimagick/dnsmasq
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
volumes:
- ./dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
restart: always
```
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html

View File

@ -1,19 +0,0 @@
#
# Dockerfile for dnsmasq-arm
#
FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache dnsmasq-dnssec \
&& echo "conf-dir=/etc/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf
VOLUME /etc/dnsmasq.d
EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]

View File

@ -1,4 +0,0 @@
no-hosts
no-resolv
cache-size=10000
server=127.0.0.1#2053

View File

@ -1,17 +0,0 @@
dnsmasq:
image: easypi/dnsmasq-arm
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.d/dnsmasq.conf
net: container:dnscrypt
restart: always
dnscrypt:
image: easypi/dnscrypt-proxy-arm
command: dnscrypt-proxy -a 127.0.0.1:2053 -R cisco
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
cap_add:
- NET_ADMIN
restart: always

View File

@ -1,11 +1,13 @@
dnsmasq:
image: vimagick/dnsmasq
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
volumes:
- ./dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
restart: always
version: "3.8"
services:
dnsmasq:
image: vimagick/dnsmasq
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
volumes:
- ./data:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
restart: unless-stopped