This commit is contained in:
Michael Elkerton
2026-07-28 18:46:42 -06:00
parent f0c78858fb
commit 8fa139e77d
4 changed files with 44 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
VERSION=0.0.1
+15
View File
@@ -0,0 +1,15 @@
FROM alpine:3.20
RUN apk add --no-cache unbound
# Default config location; mount your own unbound.conf over this
COPY /etc/unbound/unbound.conf /etc/unbound/unbound.conf
# Unbound needs write access to its run/chroot dirs
RUN mkdir -p /var/lib/unbound && \
unbound-anchor -a /var/lib/unbound/root.key || true
EXPOSE 53/udp 53/tcp
ENTRYPOINT ["unbound", "-d", "-c", "/etc/unbound/unbound.conf"]
+17
View File
@@ -0,0 +1,17 @@
include .env
GIT_URL=git.mspe.ca
image:
docker build -t unbound:build .
up:
docker compose up
tag:
docker tag unbound:build ${GIT_URL}/docker/unbound:${VERSION}
docker image ls
push:
docker push ${GIT_URL}/docker/unbound:${VERSION}
test: image up
+11
View File
@@ -0,0 +1,11 @@
server:
verbosity: 1
interface: 0.0.0.0
port: 53
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
access-control: 0.0.0.0/0 allow
root-hints: "/var/lib/unbound/root.hints"
auto-trust-anchor-file: "/var/lib/unbound/root.key"