mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-27 09:18:43 +00: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.
|
[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
|
[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:
|
services:
|
||||||
image: vimagick/ftldns
|
image: vimagick/ftldns
|
||||||
ports:
|
ports:
|
||||||
- "53:53"
|
- "53:53/tcp"
|
||||||
|
- "53:53/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/etc/pihole
|
- ./data/etc:/etc/pihole
|
||||||
|
- ./data/log:/var/log/pihole
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /run/pihole
|
- /run/pihole
|
||||||
- /dev/shm
|
- /dev/shm
|
||||||
|
working_dir: /etc/pihole
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user