pi-hole / docker-pi-hole

Pi-hole in a docker container
https://pi-hole.net
Other
8.63k stars 1.14k forks source link

unable to resolve host address #1484

Closed firyx closed 11 months ago

firyx commented 1 year ago

This is a: Bug

Details

Related Issues

How to reproduce the issue

  1. Environment data

    • Operating System: Docker on MX Linux 23 (Debian based Linux)
    • Hardware: PC
    • Kernel Architecture: x86/amd64
    • Docker Install Info and version:
    • Software source: official docker-ce
    • Supplimentary Software: docker-compose
    • Hardware architecture: x86/amd64
  2. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here

    • docker-compose.yml:
      
      version: '3.9'

services: archivebox: image: ${DOCKER_IMAGE:-archivebox/archivebox:dev} command: server --quick-init 0.0.0.0:8000 ports:

  1. any additional info to help reproduce

These common fixes didn't work for my issue

If the above debugging / fixes revealed any new information note it here. Add any other debugging steps you've taken or theories on root cause that may help.

firyx commented 1 year ago

This made it working:

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
github-actions[bot] commented 11 months ago

This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.