I used the Docker Compose file supplied by macom in this thread to set up Pihole and Unbound. But similar to the OP of this thread, I have a container deployed successfully but the logs stop at "[✗] DNS resolution is currently unavailable" and I can't access anything. Here is my compose file:
version: '2'
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pihole
#mac_address: 00:1e:06:ad:2f:01
#cap_add: # Recommended but not required (DHCP needs NET_ADMIN)
# - NET_ADMIN
ports:
- 443/tcp
- 53/tcp
- 53/udp
# - 67/udp # Uncomment if you want to use Pi-Hole for DHCP
- 80/tcp
- 22/tcp
environment:
TZ: America/Chicago
ServerIP: 192.168.0.13
WEBPASSWORD: "inserted_my_password"
DNS1: 192.168.0.14
DNS2: 192.168.0.14
#DNS2: 1.0.0.1
#PROXY_LOCATION: pihole
volumes:
- /home/AppData/pihole/volume/:/etc/pihole/:rw
#- /home/AppData/pihole/config/hosts:/etc/hosts:ro
#- /home/AppData/pihole/config/resolv.conf:/etc/resolv.conf:ro
- /home/AppData/pihole/config/dnsmasq.conf/:/etc/dnsmasq.d/:rw
#- /home/AppData/pihole/config/pihole-FTL.conf:/etc/pihole/pihole-FTL.conf:ro
networks:
homepi:
ipv4_address: 192.168.0.13
restart: unless-stopped
unbound:
container_name: unbound
image: mvance/unbound:latest
hostname: syn-unbound
#mac_address: 00:1e:06:ad:2f:02
cap_add:
- NET_ADMIN
ports:
- 53/tcp
- 53/udp
volumes:
- /home/AppData/unbound:/opt/unbound/etc/unbound:rw
environment:
TZ: America/Chicago
networks:
homepi:
ipv4_address: 192.168.0.14
restart: unless-stopped
networks:
homepi: # Name of network
driver: macvlan # Use the macvlan network driver
driver_opts:
parent: enp5s0 # Name of the Network Interface (check in OMV GUI in Network >> Interfaces >> Name
ipam:
config:
- subnet: 192.168.0.0/24 # Specify subnet
gateway: 192.168.0.1 # Gateway address / address of router
ip_range: 192.168.0.12/30 # 192.168.0.13 and 192.168.0.14
Display More
The logs are as follows:
QuoteDisplay Mores6-rc: info: service lighttpd: starting
s6-rc: info: service lighttpd successfully started
s6-rc: info: service _postFTL: starting
s6-rc: info: service _postFTL successfully started
s6-rc: info: service legacy-services: starting
Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
s6-rc: info: service legacy-services successfully started
[i] Creating new gravity database
[i] Migrating content of /etc/pihole/adlists.list into new database
[✗] DNS resolution is currently unavailable
[i] Time until retry: 1
[✗] DNS resolution is not available
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service _postFTL: stopping
s6-rc: info: service _postFTL successfully stopped
s6-rc: info: service lighttpd: stopping
Stopping lighttpd
s6-rc: info: service lighttpd successfully stopped
s6-rc: info: service pihole-FTL: stopping
Stopping pihole-FTL
s6-rc: info: service pihole-FTL successfully stopped
s6-rc: info: service _startup: stopping
s6-rc: info: service _startup successfully stopped
s6-rc: info: service _uid-gid-changer: stopping
s6-rc: info: service _uid-gid-changer successfully stopped
s6-rc: info: service cron: stopping
Stopping cron
s6-rc: info: service cron successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-linux-init-shutdown: fatal: unable to talk to shutdownd: Operation not permitted
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service cron: starting
s6-rc: info: service cron successfully started
s6-rc: info: service _uid-gid-changer: starting
s6-rc: info: service _uid-gid-changer successfully started
s6-rc: info: service _startup: starting
ServerIP is deprecated. Converting to FTLCONF_LOCAL_IPV4
[i] Starting docker specific checks & setup for docker pihole/pihole
[i] Setting capabilities on pihole-FTL where possible
[i] Applying the following caps to pihole-FTL:
* CAP_CHOWN
* CAP_NET_BIND_SERVICE
* CAP_NET_RAW
[i] Ensuring basic configuration by re-running select functions from basic-install.sh
[i] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[i] Installing /etc/dnsmasq.d/01-pihole.conf...
[✓] Installed /etc/dnsmasq.d/01-pihole.conf
[i] Installing /etc/.pihole/advanced/06-rfc6761.conf...
[✓] Installed /etc/dnsmasq.d/06-rfc6761.conf
[i] Installing latest logrotate script...
[i] Existing logrotate file found. No changes made.
[i] Assigning password defined by Environment Variable
[✓] New password set
[i] Added ENV to php:
"TZ" => "America/Chicago",
"PIHOLE_DOCKER_TAG" => "",
"PHP_ERROR_LOG" => "/var/log/lighttpd/error-pihole.log",
"CORS_HOSTS" => "",
"VIRTUAL_HOST" => "pihole",
[i] Using IPv4 and IPv6
[i] Installing latest Cron script...
[✓] Installing latest Cron script
[i] setup_blocklists now setting default blocklists up:
[i] TIP: Use a docker volume for /etc/pihole/adlists.list if you want to customize for first boot
[i] Blocklists (/etc/pihole/adlists.list) now set to:
https://raw.githubusercontent.…nBlack/hosts/master/hosts
[i] Converting DNS1 to PIHOLE_DNS_
[i] Converting DNS2 to PIHOLE_DNS_
[i] Setting DNS servers based on PIHOLE_DNS_ variable
[i] Applying pihole-FTL.conf setting LOCAL_IPV4=192.168.0.13
[i] FTL binding to default interface: eth0
[i] Enabling Query Logging
[i] Testing lighttpd config: Syntax OK
[i] All config checks passed, cleared for startup ...
[i] Docker start setup complete
[i] pihole-FTL (no-daemon) will be started as pihole
s6-rc: info: service _startup successfully started
s6-rc: info: service pihole-FTL: starting
s6-rc: info: service pihole-FTL successfully started
s6-rc: info: service lighttpd: starting
s6-rc: info: service lighttpd successfully started
s6-rc: info: service _postFTL: starting
s6-rc: info: service _postFTL successfully started
s6-rc: info: service legacy-services: starting
Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
s6-rc: info: service legacy-services successfully started
[✗] DNS resolution is currently unavailable
My router is 192.168.1.1 and my lan is on that same scheme. But my impression was that you didn't want to use those addresses because you are creating a separate VLAN. Any help is appreciated.