init
This commit is contained in:
+15
@@ -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"]
|
||||||
|
|
||||||
@@ -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
|
||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user