mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-15 11:47:09 +02:00
update dnsmasq (FIX #202)
This commit is contained in:
parent
566f5c6742
commit
fd0f973be8
@ -2,9 +2,9 @@
|
|||||||
# Dockerfile for dnsmasq
|
# Dockerfile for dnsmasq
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine:3
|
||||||
|
|
||||||
MAINTAINER kev <norelply@easypi.pro>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache dnsmasq-dnssec \
|
&& apk add --no-cache dnsmasq-dnssec \
|
||||||
|
@ -4,20 +4,4 @@ dnsmasq
|
|||||||
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
|
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
|
||||||
Protocol server for small computer networks, created as free software.
|
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
|
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||||
|
@ -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"]
|
|
@ -1,4 +0,0 @@
|
|||||||
no-hosts
|
|
||||||
no-resolv
|
|
||||||
cache-size=10000
|
|
||||||
server=127.0.0.1#2053
|
|
@ -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
|
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
dnsmasq:
|
dnsmasq:
|
||||||
image: vimagick/dnsmasq
|
image: vimagick/dnsmasq
|
||||||
ports:
|
ports:
|
||||||
@ -5,7 +7,7 @@ dnsmasq:
|
|||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
- "67:67/udp"
|
- "67:67/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- ./dnsmasq.d:/etc/dnsmasq.d
|
- ./data:/etc/dnsmasq.d
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user