From 7de0de4d4338a13a60ca8bd48fbd75f5081455fc Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 25 Aug 2023 00:14:06 +0400 Subject: [PATCH] Enable Pi-hole to block trackers and adverts --- docker-compose.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a47eb821..e0f09a49 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,8 +31,8 @@ services: # FIXME: Mercury doesn't work - USE_MERCURY=False - SAVE_MERCURY=False - # dns: # uncomment to use pihole below for ad/tracker blocking during archiving - # - pihole + dns: # uncomment to use pihole below for ad/tracker blocking during archiving + - pihole volumes: - ./data:/data - ./archivebox:/app/archivebox # for developers working on archivebox @@ -53,20 +53,20 @@ services: # volumes: # - ./sonic.cfg:/etc/sonic.cfg:ro # - ./data/sonic:/var/lib/sonic/store - - + + ### Example: To run pihole in order to block ad/tracker requests during archiving, # uncomment this block and set up pihole using its admin interface - # pihole: - # image: pihole/pihole:latest - # ports: - # - 80:80 # uncomment to access the admin HTTP interface on http://localhost:80 - # environment: - # WEBPASSWORD: 'set a secure password here or it will be random' - # volumes: - # - ./data/pihole:/etc/pihole - # - ./data/dnsmasq:/etc/dnsmasq.d + pihole: + image: pihole/pihole:latest + ports: + - 80:80 # uncomment to access the admin HTTP interface on http://localhost:80 + environment: + WEBPASSWORD: 'password' + volumes: + - ./data/pihole:/etc/pihole + - ./data/dnsmasq:/etc/dnsmasq.d ### Example: Run scheduled imports in a docker instead of using cron on the