From d7a86a5ff534468a770eb9623d3be31f6a21f2f0 Mon Sep 17 00:00:00 2001 From: James Turland Date: Sat, 13 Jan 2024 21:25:01 +0000 Subject: [PATCH] unbound --- Unbound/docker-compose.yaml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Unbound/docker-compose.yaml diff --git a/Unbound/docker-compose.yaml b/Unbound/docker-compose.yaml new file mode 100644 index 0000000..dc1d472 --- /dev/null +++ b/Unbound/docker-compose.yaml @@ -0,0 +1,43 @@ +version: '3' + +networks: + dns_net: + driver: bridge + ipam: + config: + - subnet: 172.23.0.0/16 + +services: + pihole: + container_name: pihole + hostname: pihole + image: pihole/pihole:latest + networks: + dns_net: + ipv4_address: 172.23.0.7 + ports: + - "53:53/tcp" + - "53:53/udp" + - "85:80/tcp" + #- "443:443/tcp" + environment: + - 'TZ=Europe/London' + - 'WEBPASSWORD=password' + - 'DNS1=172.23.0.7#5053' + - 'DNS2=no' + volumes: + - '/home/ubuntu/docker/pihole/etc-pihole/:/etc/pihole/' + - '/home/ubuntu/docker/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/' + restart: unless-stopped + unbound: + container_name: unbound + image: mvance/unbound:latest + networks: + dns_net: + ipv4_address: 172.23.0.8 + volumes: + - /home/ubuntu/docker/unbound:/opt/unbound/etc/unbound + ports: + - "5053:53/tcp" + - "5053:53/udp" + restart: unless-stopped \ No newline at end of file