1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-15 14:03:21 +02:00

update dnsmasq

This commit is contained in:
kev 2016-07-12 13:43:54 +08:00
parent 4f7c39b30c
commit bb843eece8
6 changed files with 49 additions and 7 deletions

View File

@ -31,6 +31,7 @@ A collection of delicious docker recipes.
- [ ] ipset
- [ ] irc
- [ ] libreswan
- [ ] metasploit
- [ ] mitmproxy
- [ ] nagios
- [ ] nfs

View File

@ -3,16 +3,17 @@
#
FROM alpine
MAINTAINER kev <norelply@easypi.info>
RUN set -xe \
&& apk add -U dnsmasq \
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf \
&& mkdir -p /etc/dnsmasq.d \
&& rm -rf /var/cache/apk/*
&& apk add --no-cache dnsmasq \
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf
VOLUME /etc/dnsmasq.d
EXPOSE 53/tcp 53/udp 67/udp
EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["/usr/sbin/dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]

View File

@ -1,2 +1,23 @@
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

19
dnsmasq/arm/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
#
# Dockerfile for dnsmasq-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache dnsmasq \
&& 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,7 +1,7 @@
dnsmasq:
image: easypi/dnsmasq-arm
volumes:
- ./dnsmasq.d:/etc/dnsmasq.d
- ./dnsmasq.conf:/etc/dnsmasq.d/dnsmasq.conf
net: container:dnscrypt
restart: always