knot-resolver doh/dot container

master
meskio 2 years ago
commit 7e051fe85b
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 15
      Dockerfile
  2. 11
      docker-compose.yml
  3. 7
      kresd.conf

@ -0,0 +1,15 @@
FROM registry.sindominio.net/debian
RUN echo "deb http://deb.debian.org/debian bullseye main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends -t bullseye \
knot-resolver && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY kresd.conf /etc/knot-resolver/kresd.conf
WORKDIR /var/cache/knot-resolver/
VOLUME ["/var/cache/knot-resolver"]
ENTRYPOINT ["/usr/sbin/kresd"]
CMD ["-c", "/etc/knot-resolver/kresd.conf"]

@ -0,0 +1,11 @@
doh:
container_name: doh
hostname: doh
image: registry.sindominio.net/doh
restart: always
user: 112:65534
ports:
- "4433:4433"
- "8533:8533"
volumes:
- /opt/doh/cache:/var/cache/knot-resolver

@ -0,0 +1,7 @@
-- DoH on port 4433
net.listen("0.0.0.0", 4433, { kind = "doh2" })
-- DoT on port 8533
net.listen("0.0.0.0", 8533, { kind = "tls" })
cache.size = 256 * MB
Loading…
Cancel
Save