
What is Pi-hole
Have you ever been creeped out by advertisements that pop up for things you’ve talked about but never searched for? Pi-hole is a good solution to prevent that from happening ever again.
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application that acts as a DNS sinkhole and optionally a DHCP server on a private network. It can be installed on any Linux machine, such as the Raspberry Pi or a virtual machine hosting Linux. It has the capability to block website advertisements as well as advertisements on smart TVs and mobile operating systems.
I Was Not happy with how the docker was running so decided to install Pi-hole on a PI-Zero Link to that tutorial Here
Step 1
Install container manager, If you have already installed the manager jump to step 3
Select Main menu or the Package Center shortcut

Step 2
Type in Container in the Search bar and Press enter on your keyboard. Then you will See Container manager like below. in my case i have installed the Container manager already. Select install, wait a few second and then select open.

Step 3
Now you have selected open you should see a screen like below and The Manager will say Running in green. Select open and move on to the next step.

Step 4
Now you will be Presented with the below. This is the Container manager over view of all your Containers and what’s happening in real time.

Step 5

Now We need to Create a Project for FileBrowser.
This project will do a number of things. download the image and setup the Project to Run all in one go.
Select project from the menu down the side and then select Create button

Step 6
before we go any thuther we need to ensure we have our folders setup ready for the project.
I have a main folder on the Synology system just for docker projects. create the following folders using filestation in the config folder
- pihole
- pihole/etc-pihole
- pihole/etc-dnsmasq.d

Step 7
now we have created the folders needed for the project we can go ahead and create the project in Container manager
Give the project a name, change source to Create docker-compose.yml and add the path. Project name is all lower case.
See below for before and after the code you will need is below also.


the volume path needs tobe exact or the project will return a fail.
services:
pihole:
image: pihole/pihole
container_name: Pi-Hole
network_mode: host
security_opt:
- no-new-privileges:false
restart: on-failure:5
volumes:
- /volume1/docker/projects/pihole/etc-dnsmasqd:/etc/dnsmasq.d:rw
- /volume1/docker/projects/pihole/etc-pihole:/etc/pihole:rw
environment:
FTLCONF_webserver_api_password: password
FTLCONF_webserver_port: 8147
FTLCONF_dns_listeningMode: all
TZ: Europe/London
DNSMASQ_USER: root #or root NOT recommended to use root.
PIHOLE_UID: 1024
PIHOLE_GID: 100
cap_add:
- SYS_TIME
- SYS_NICE
my code
press next when you are happy with the code
Step 8
setup a web portal if you like . I would not advise it. and press next. Port 8147 is set in the above code

Step 9

That’s it for this section, time to create the project. Remember to click start when project created bottom left.
Select Done
Step 10
If you have a Exit Code of 0 like i have below then you are done. project created. if you have a Exit code 1 you have a error and need to visit the code again and trouble shoot.

Step 11
One last thing you can check to see if the docker is Green and showing no Errors, todo that just goto Container manager and on the left select Projects and FileBrowser will be there Status Colum should be green if not you will need to trouble shoot.

Step 12
Create the tunnel on cloudflare so you can access the docker remotely



