Just installed Docker, how to install Pi-Hole docker?

Hello,

I am looking for a little help.

I am a competent user of Windows etc but little knowledge of Linux mainly through using Raspberry Pi OS.

I wanted to do more with linux, so I have got a Debian 12 "Bookworm" KVM VPS (2 vCPU, 3GB Mem etc), it's just a fresh install via the hosters control panel and only user is root once it is running.
I have Pi-Hole installed (main times) on my raspberry Pi's etc but I wanted to install Pi-Hole on the KVM VPS so I can use the DNS on my remote devices etc without opening up my home network for DNS.
Upon reading the install instructions I noticed there was a docker install, so also wanting to learn about Docker I installed Docker and ran the Hello World and all is OK.

*** However I am now at a loss what to do next as the Pi-Hole install docs say install

  1. Install docker for your x86-64 system or ARMv7 system using those links. Docker-compose is also recommended.
  2. Use the above quick start example, customize if desired.
  3. Enjoy!

So, I have done step one, now how do I do step 2, the Quick Start doc says "Copy docker-compose.yml.example to docker-compose.yml and update as needed. " but where do I create/copy the the docker-compose.yml file too?

I have looked at various other tutorials and they all say roughly the same, ie after install run the "Hello World" and if OK then create this docker-compose.yml file etc etc but nowhere do they say how or where to create, so a little help would be great

Thanks

Important:

Just like your home network, you will need to make sure your VPS is not open to the Internet, to avoid creating an open resolver.

In both cases (home network and VPS), you should use a VPN to connect to Pi-hole.

Copy the file to any directory you want in your Debian 12 machine. Most people create a sub-directory in the user's home directory.


If you don't know how to find the desired directories, or don't know how to create a directory, or how Compose files work, or any other Linux doubt, I suggest you to take your time to learn one thing at a time. Trying too many unknown things at a time will generate confusion and lead to frustration.

Most useful, thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.