Archivebox with Pihole reddit / selfhosted ---------------------------------------------------------------------- FilipRysavyX · 2023-11-03 12:31 Hi, I want to setup Archivebox with Pihole via docker compose. In Archivebox repo, there is a sample docker-compose.yml file with commented pihole config ([https://github.com/ArchiveBox/ArchiveBox/blob/dev/docker- compose.yml](https://github.com/ArchiveBox/ArchiveBox/blob/dev/docker- compose.yml)), but just uncommenting: * \`services.archivebox.dns\` * \`services.pihole...\` doesn't seem to work => I get \`DNS\_PROBE\_FINISHED\_BAD\_CONFIG\` when Archivebox tries to download the links. Does anyone knows the correct docker compose config for working Archivebox with Pihole? ---------------------------------------------------------------------- FilipRysavyX · 2023-11-07 13:36 I'll answer myself, this made it working: ```yml version: '3.9' services: archivebox: image: ${DOCKER_IMAGE:-archivebox/archivebox:dev} command: server --quick-init 0.0.0.0:8000 ports: - 127.0.0.1:8000:8000 volumes: - ./data:/data depends_on: - pihole dns: # uncomment this and pihole container below for ad-blocking during archiving - 172.20.0.53 networks: archiveboxnet: ipv4_address: 172.20.0.6 environment: - ALLOWED_HOSTS=* # restrict this to only accept incoming traffic via specific domain name ### 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: - 127.0.0.1:8090:80 # uncomment to access the admin HTTP interface on http://localhost:8090 - 127.0.0.1:53:53/tcp - 127.0.0.1:53:53/udp environment: - WEBPASSWORD=... - DNSMASQ_LISTENING=all volumes: - ./etc/pihole:/etc/pihole - ./etc/dnsmasq:/etc/dnsmasq.d dns: - 127.0.0.1 - 1.1.1.1 - 1.0.0.1 networks: archiveboxnet: ipv4_address: 172.20.0.53 networks: archiveboxnet: ipam: driver: default config: - subnet: 172.20.0.0/24 ``` ---------------------------------------------------------------------- dontworryimnotacop · 2023-11-14 05:57 The [`docker-compose.yml`](https://github.com/ArchiveBox/ArchiveBox/bl ob/dev/docker-compose.yml) has now been updated with a fixed version of the pihole config, it turns the pihole container needs a static IP within the container subnet to be the resolver for archivebox.