mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-15 14:03:21 +02:00
update dnsmasq
This commit is contained in:
parent
4f7c39b30c
commit
bb843eece8
@ -31,6 +31,7 @@ A collection of delicious docker recipes.
|
||||
- [ ] ipset
|
||||
- [ ] irc
|
||||
- [ ] libreswan
|
||||
- [ ] metasploit
|
||||
- [ ] mitmproxy
|
||||
- [ ] nagios
|
||||
- [ ] nfs
|
||||
|
@ -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"]
|
||||
|
@ -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
19
dnsmasq/arm/Dockerfile
Normal 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"]
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user