Closed firyx closed 11 months 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
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.
This is a: Bug
Details
unable to resolve host address
error when accessing internet through pihole docker containerRelated Issues
How to reproduce the issue
Environment data
docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
services: archivebox: image: ${DOCKER_IMAGE:-archivebox/archivebox:dev} command: server --quick-init 0.0.0.0:8000 ports:
- ./etc/crontabs:/var/spool/cron/crontabs # uncomment this and archivebox_scheduler below to set up automatic recurring archive jobs
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:
docker compose run archivebox init --setup
docker compose up
docker exec archivebox-archivebox-1 wget https://abc.com
docker exec archivebox-pihole-1 curl -L https://abc.com
=> it seems internet is working, the page is downloadeddocker exec archivebox-archivebox-1 wget pihole/admin
=> it seems pihole is working, the admin page is downloaded127.0.0.1:8000
) and Pihole admin interface (127.0.0.1:8090
)services.archivebox.dns
andservices.pihole...
in thedocker-compose.yml
file, then Archivebox works correctly, the links are downloaded, there are no DNS errors.These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)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.