mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-24 05:17:06 +02:00
update ftldns
This commit is contained in:
parent
3eae3350dd
commit
946752d634
@ -3,4 +3,21 @@ FTLDNS
|
||||
|
||||
[FTLDNS][1] (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.
|
||||
|
||||
## Up and Running
|
||||
|
||||
```bash
|
||||
$ docker compose up -d
|
||||
|
||||
$ dig @127.0.0.1 -p 53 www.youtube.com
|
||||
|
||||
$ docker compose exec ftldns pihole-FTL sql gravity.db
|
||||
>>> .schema domainlist
|
||||
>>> insert into domainlist(type, domain) values (3, '(\.|^)youtube\.com$');
|
||||
>>> .quit
|
||||
|
||||
$ docker compose exec ftldns kill -RTMIN 1
|
||||
|
||||
$ dig @127.0.0.1 -p 53 www.youtube.com
|
||||
```
|
||||
|
||||
[1]: https://github.com/pi-hole/FTL
|
||||
|
0
ftldns/data/log/.gitkeep
Normal file
0
ftldns/data/log/.gitkeep
Normal file
@ -2,10 +2,13 @@ version: "3.8"
|
||||
services:
|
||||
image: vimagick/ftldns
|
||||
ports:
|
||||
- "53:53"
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
volumes:
|
||||
- ./data:/etc/pihole
|
||||
- ./data/etc:/etc/pihole
|
||||
- ./data/log:/var/log/pihole
|
||||
tmpfs:
|
||||
- /run/pihole
|
||||
- /dev/shm
|
||||
working_dir: /etc/pihole
|
||||
restart: unless-stopped
|
||||
|
Loading…
x
Reference in New Issue
Block a user