Setting up Pi-hole
Set up Pi-hole using Docker and Docker Compose for ad-blocking and DNS server
This installation procedure is tested on Ubuntu 22.04.x LTS and x86_64 architecture.
Create a docker-compose.yml
file with the following content:
Official docker-compose.yml
example
Modern releases of Ubuntu include a caching DNS stub resolver by default.
To disable this, run the following command:
After that, change the nameserver settings to point to "systemd-resolved":
Run the following command to apply the changes:
Now that you've set up Pi-hole, you can log in using the WEBPASSWORD
by opening your browser and go to http://localhost/admin.