Hello I want to achieve the following. I want to run a Pihole container and a ubound container. PI-Hole should be attached to the normal lan (macvlan) and the connection between the PiHole and unbound via a bridge network.
I have therefor created the following yaml file :
version: "3" services: pihole: container_name: pihole image: pihole/pihole:latest ports: - "53:53/tcp" - "53:53/udp" - "8080:80/tcp" environment: PIHOLE_DNS_: '10.1.0.2' TZ: 'Europe/Amsterdam' WEBPASSWORD: 'Welkom123' volumes: - './etc-pihole:/etc/pihole' - './etc-dnsmasq.d:/etc/dnsmasq.d' networks: mvlnet: ipv4_address: 192.168.1.200 brdnet: ipv4_address: 10.1.0.1 restart: unless-stopped unbound: container_name: unbound image: mvance/unbound:latest ports: - 5353/tcp - 5353/udp networks: brdnet: ipv4_address: 10.1.0.2 restart: unless-stopped networks: mvlnet: driver: macvlan driver_opts: parent: eth0 ipam: config: - subnet: 192.168.1.0/24 gateway: 192.168.1.254 brdnet: driver: bridge ipam: config: - subnet: 10.1.0.0/24
But everytime I want to compose this file I get the following error :
pi@raspberrypi:~/dockerfiles $ docker-compose up -d Removing pihole unbound is up-to-date Recreating 60b7ec5ea54b_pihole ... error ERROR: for 60b7ec5ea54b_pihole Cannot start service pihole: No available addresses on this pool ERROR: for pihole Cannot start service pihole: No available addresses on this pool ERROR: Encountered errors while bringing up the project. pi@raspberrypi:~/dockerfiles $
If I comment the bridge network part of the Pi-Hole service the get created. My question what am I doing wrong or is this not possible?