1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-11-29 22:38:35 +02:00

add FTLDNS

This commit is contained in:
kevin
2023-11-26 16:26:19 +08:00
parent b279eeab98
commit 3eae3350dd
8 changed files with 53 additions and 0 deletions

View File

@@ -302,6 +302,7 @@ A collection of delicious docker recipes.
- [x] dnscrypt-server
- [x] dnsmasq
- [x] dnsmasq-arm
- [x] ftldns
- [x] passivedns
- [x] pdnsd

24
ftldns/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
#
# Dockerfile for FTLDNS (pihole-FTL)
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG FTL_VERSION=v5.23
ARG FTL_URL=https://github.com/pi-hole/FTL/releases/download/$FTL_VERSION/pihole-FTL-musl-linux-x86_64
RUN set -xe \
&& apk add --no-cache curl \
&& echo "conf-dir=/etc/pihole/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf \
&& curl -sSL $FTL_URL -o /usr/bin/pihole-FTL \
&& chmod +x /usr/bin/pihole-FTL \
&& pihole-FTL --version \
&& apk del curl
VOLUME /etc/pihole
EXPOSE 53/tcp \
53/udp
CMD ["pihole-FTL", "-f"]

6
ftldns/README.md Normal file
View File

@@ -0,0 +1,6 @@
FTLDNS
==========
[FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.
[1]: https://github.com/pi-hole/FTL

View File

@@ -0,0 +1,4 @@
no-hosts
no-resolv
cache-size=10000
server=8.8.8.8

BIN
ftldns/data/gravity.db Normal file

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#
# https://aur.archlinux.org/cgit/aur.git/tree/pi-hole-ftl.conf?h=pi-hole-ftl
#
BLOCKINGMODE=NXDOMAIN
FTLPORT=4711

View File

@@ -0,0 +1 @@
BLOCKING_ENABLED=true

11
ftldns/docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: "3.8"
services:
image: vimagick/ftldns
ports:
- "53:53"
volumes:
- ./data:/etc/pihole
tmpfs:
- /run/pihole
- /dev/shm
restart: unless-stopped