Initial commit

This commit is contained in:
Derek Paschal 2023-04-11 12:23:02 -05:00
parent 7f153ec2de
commit 0e171eb452
3 changed files with 34 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
# ARG ALPINE_VERSION=edge
FROM alpine:latest
RUN apk --no-cache add dnsmasq-dnssec
RUN mkdir -p /etc/dnsmasq.d
COPY dnsmasq.conf /etc/
EXPOSE 53 53/udp
ENTRYPOINT ["/usr/sbin/dnsmasq", "-k"]
# FROM alpine:latest
# COPY dnsmasq.conf /etc/
# RUN mkdir -p /etc/dnsmasq.d
# RUN apk --no-cache add dnsmasq-dnssec
# EXPOSE 53 53/udp
# ENTRYPOINT ["/usr/sbin/dnsmasq" "-k"]

1
dnsmasq.conf Normal file
View File

@ -0,0 +1 @@
conf-dir=/etc/dnsmasq.d,*.conf

14
docker-compose.yml Normal file
View File

@ -0,0 +1,14 @@
version: '3'
services:
dns:
restart: always
image: dnsmasq:latest
build:
context: .
volumes:
- ./dnsmasq:/etc/dnsmasq.d
ports:
- "53:53/tcp"
- "53:53/udp"
cap_add:
- NET_ADMIN