From c11a63599926131965865b2ca2323e583e9bf84c Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Fri, 20 Dec 2024 22:33:45 +0100 Subject: [PATCH] Upload files to "compose/adguard" --- compose/adguard/docker-compose.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 compose/adguard/docker-compose.yml diff --git a/compose/adguard/docker-compose.yml b/compose/adguard/docker-compose.yml new file mode 100644 index 0000000..dfebdda --- /dev/null +++ b/compose/adguard/docker-compose.yml @@ -0,0 +1,31 @@ +services: + adguardhome: + image: adguard/adguardhome + security_opt: + - apparmor:unconfined + container_name: adguardhome + ports: + - 53:53/tcp + - 53:53/udp + - 784:784/udp + - 853:853/tcp + - 3000:3000/tcp + - 80:80/tcp + - 443:443/tcp + volumes: + - /docker/appdata/adguard/workdir:/opt/adguardhome/work + - /docker/appdata/adguard/confdir:/opt/adguardhome/conf + restart: unless-stopped + +# Port 53 is being used at your host machine, that's why you can not bind 53 to host. +# To find what is using port 53 you can do: sudo lsof -i -P -n | grep LISTEN +# I'm a 99.9% sure that systemd-resolved is what is listening to port 53. To solve that you need to disable it. You can do that with these 2 commands: +# systemctl disable systemd-resolved.service +# systemctl stop systemd-resolved +# Now you have port 53 open, but no dns configured for your host. To fix that, you need to edit '/etc/resolv.conf' and add the dns address. +# This is an example with a common dns address: +# nameserver 8.8.8.8 +# If you have another nameserver in that file, I would comment it to prevent issues. +# Once pihole docker container gets running, you can change the dns server of your host to localhost, as you are binding port 53 to the host machine. +# Change again '/etc/resolv.conf' like this +# nameserver 127.0.0.1 \ No newline at end of file