Hi all, I've been following this guide where I've been re-doing my Pi4B 8GB in docker/portainer:
My understanding is that this creates a "Stack" which contains both unbound and pihole containers.
Essentially, I made it up to the part where you start the pihole container - sudo docker-compose up -d pihole
& I've received the following error:
Creating pihole ... error
ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (da94e9808bcd046e32c4f396db0fea2428d97b1804821c9b9269ac7b12d4491f): Bind for 0.0.0.0:443 failed: port is already allocated
ERROR: for pihole Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (da94e9808bcd046e32c4f396db0fea2428d97b1804821c9b9269ac7b12d4491f): Bind for 0.0.0.0:443 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
I do have other containers running, and I believe the 443 port clashes with Deconz/Phoscon:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
957e59bb8e1f mvance/unbound-rpi:latest "/unbound.sh" 41 minutes ago Up 41 minutes 53/tcp, 53/udp, 0.0.0.0:5053->5053/tcp, 0.0.0.0:5053->5053/udp unbound
cf1de4906f43 deconzcommunity/deconz:stable "/start.sh" 11 hours ago Up 20 minutes (healthy) 0.0.0.0:80->80/tcp, 5900/tcp, 0.0.0.0:443->443/tcp, 6080/tcp deconz
86ceae69ec71 oznu/homebridge:latest "/init" 11 hours ago Up 21 minutes homebridge_homebridge_1
3193de7d0272 lscr.io/linuxserver/deluge:latest "/init" 12 hours ago Up 21 minutes 0.0.0.0:6881->6881/tcp, 58846/tcp, 0.0.0.0:8112->8112/tcp, 0.0.0.0:6881->6881/udp, 58946/tcp, 58946/udp deluge
de7cd14d3787 portainer/portainer-ce:latest "/portainer" 14 hours ago Up 9 hours 8000/tcp, 9443/tcp, 0.0.0.0:9000->9000/tcp portainer
I've managed to install the pihole container if I stop the deconz container as a test, but it doesn't fully work. In Portainer it as a state of "Healthy" rather than "Running", and when I go to the expected address - 192.168.1.10:8080, I get a "403 Forbidden" error.
My docker compose file is the following:
version: '3'
networks:
dns_net:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/16
services:
pihole:
container_name: pihole
hostname: pihole
image: pihole/pihole:latest
networks:
dns_net:
ipv4_address: 172.22.0.6
ports:
- "53:53/tcp"
- "53:53/udp"
- "8080:80/tcp"
- "443:443/tcp"
environment:
- 'TZ=Australia/Sydney'
- 'WEBPASSWORD=password'
- 'DNS1=172.20.0.7#5053'
- 'DNS2=no'
volumes:
- '/home/pi/pihole/etc-pihole/:/etc/pihole/'
- '/home/pi/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
restart: unless-stopped
unbound:
container_name: unbound
image: mvance/unbound-rpi:latest
networks:
dns_net:
ipv4_address: 172.22.0.7
volumes:
- /home/pi/unbound:/opt/unbound/etc/unbound
ports:
- "5053:5053/tcp"
- "5053:5053/udp"
healthcheck:
disable: true
restart: unless-stopped
I did find a similar topic on this previously, but I couldn't quite follow:
Thanks for your help!