docker-pi-hole VS gravity-sync

Compare docker-pi-hole vs gravity-sync and see what are their differences.

gravity-sync

đź’« The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances. (by vmstan)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
docker-pi-hole gravity-sync
203 121
7,676 2,086
2.8% -
7.8 4.4
5 days ago about 1 month ago
Shell Shell
GNU General Public License v3.0 or later GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

docker-pi-hole

Posts with mentions or reviews of docker-pi-hole. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-10.
  • Problem - Pi-Hole not getting many DNS requests
    2 projects | /r/pihole | 10 Jul 2023
    Yesterday I deployed the official pi hole docker container on my raspberry pi 3 and set a custom DNS address on my phone addressing to the pi.
  • No internet access for containers co-hosted with pihole
    6 projects | /r/docker | 13 May 2023
    More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
    6 projects | /r/docker | 13 May 2023
    version: "3" # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ networks: dns_net: driver: bridge ipam: config: - subnet: 10.2.0.0/24 services: pihole: depends_on: [unbound] container_name: pihole image: pihole/pihole:latest hostname: pihole networks: dns_net: ipv4_address: 10.2.0.100 ports: - "5335:53/tcp" - "5335:53/udp" - "7000:80/tcp" environment: TZ: ${TZ} WEBPASSWORD: ${PWD} FTLCONF_LOCAL_IPV4: ${HOST_IP} # Set to server's LAN IP, used by web block modes. PIHOLE_DNS_: 10.2.0.200 # Upstream DNS server(s) for Pi-hole to forward queries to, separated by a semicolon DNSMASQ_LISTENING: all # "Listen on all interfaces, permit all origins" # Volumes store your data between container upgrades volumes: - /var/lib/docker/volumes/pihole/etc-pihole:/etc/pihole - /var/lib/docker/volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d healthcheck: disable: true restart: unless-stopped unbound: # https://github.com/MatthewVance/unbound-docker container_name: unbound image: mvance/unbound:latest hostname: unbound networks: dns_net: ipv4_address: 10.2.0.200 ports: - "${HOST_IP}:53:53/udp" - "${HOST_IP}:53:53/tcp" healthcheck: disable: true restart: unless-stopped
  • Synology/MACVLAN/BRIDGE help
    2 projects | /r/synology | 9 May 2023
    services: pihole: container_name: pihole image: pihole/pihole:latest hostname: pihole # Container hostname (optional) domainname: mynetwork.local # Container domain (optional) mac_address: f7:55:63:b0:68:83 # Random MAC address (optional) networks: virtualnet: # Name of macvlan ipv4_address: 192.168.100.249 # Desired IP for pihole dns: - 127.0.0.1 - 1.1.1.1 ports: - "53:53/tcp" - "53:53/udp" - "67:67/udp" - "80:80/tcp" - "443:443/tcp" volumes: - ./pihole-configs/:/etc/pihole/ - ./dnsmasq.d-configs/:/etc/dnsmasq.d/ # DNSMASQ_USER # https://github.com/pi-hole/docker-pi-hole/issues/963 # https://github.com/pi-hole/docker-pi-hole/blob/master/README.md#upgrade-notes environment: FTLCONF_LOCAL_IPV4: 10.59.0.6 # Desired IP for pihole VIRTUAL_HOST: pihole.mynetwork.local DNSMASQ_USER: root PIHOLE_DNS_: 1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001 restart: unless-stopped # Set container to always restart
  • Need a totally updated guide for setting up pi-hole on Synology DSM 7.1.1+
    2 projects | /r/pihole | 6 May 2023
    I have't yet used the NAS with docker so I don't know how exactly to set it up, but I run my pihole in a container and I just followed the official guide https://github.com/pi-hole/docker-pi-hole
    2 projects | /r/pihole | 6 May 2023
  • I'm struggling to get a Pi-Hole docker container working on my home network
    2 projects | /r/pihole | 28 Mar 2023
    More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
  • can i run a pi hole server on a jailbroken iphone ?
    3 projects | /r/pihole | 22 Mar 2023
  • What's the easiest way to redirect a local domain name to nginx proxy manager?
    2 projects | /r/selfhosted | 14 Mar 2023
    The Pi-hole documentation addresses the port 53 conflict for Ubuntu and Fedora. See the section “Installing on Ubuntu or Fedora” on this page.
  • DNS Issues
    3 projects | /r/pihole | 21 Feb 2023
    Docker Tag 2023.02.2

gravity-sync

Posts with mentions or reviews of gravity-sync. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-09.
  • Sync Local DNS and Lists on second pihole - latest way?
    3 projects | /r/pihole | 9 Jul 2023
    OR I could implement https://github.com/vmstan/gravity-sync as it's last commit was a year ago but users still seem to be using it.
  • Have any idea ?
    3 projects | /r/homelab | 27 Jun 2023
  • Two piholes and both with unbound?
    2 projects | /r/pihole | 31 May 2023
    As others have said both instances should be totally complete as the idea is if one goes offline you should still have another that functions exactly the same. I also run Gravity Sync in my environment, helps keep down the maintenance. When I whitelist a domain on one it syncs to the other within minutes, that kind of thing.
    2 projects | /r/pihole | 31 May 2023
    the github page has a really good walkthrough and explanation
  • Running PiHole on a second server
    2 projects | /r/selfhosted | 5 May 2023
    I don't have anything add to your question. But I recommend installing gravity-sync if you're going to run two piholes. It will sync up DNS entries (among other things) automatically to the second pihole when you add a entry one of them. https://github.com/vmstan/gravity-sync
  • Using RPi for Pihole and remote access gateway
    2 projects | /r/selfhosted | 21 Apr 2023
    Run Pihole on both, if DNS goes down its painful. You can sync them with https://github.com/vmstan/gravity-sync
  • Who else doesn’t work in IT? What are you struggling with today.
    6 projects | /r/homelab | 13 Apr 2023
    Hmm, per their GitHub page, "Starting in Gravity Sync 4, replication of static DHCP assignments is now supported." (Found here: https://github.com/vmstan/gravity-sync/wiki/DHCP-Replication) -- But, as I stated before, I don't use PiHole for DHCP reservations so I can't comment on if it does or doesn't work.
  • What do you run your Pihole on?
    2 projects | /r/pihole | 3 Apr 2023
    They're separate DietPi installs with Gravity Sync to keep the lists synced, but they each maintain their own resolver (unbound) caches upstream, and all clients are configured for primary (Pihole) and secondary (Bihole) addresses, then a firewall rule on the router that forwards any traffic to port 53 (AKA DNS) to Pihole. They both feed metrics to a single host that gives me a custom dashboard. Secondary unit gets less traffic, so I also run NUT (Network UPS Tools) on it to control my APC UPS.
  • Homelab DNS?
    2 projects | /r/homelab | 24 Mar 2023
    Two pi holes with gravity sync? Then it wouldn't matter which one it hit https://github.com/vmstan/gravity-sync
  • Backup DNS if/when AdGuard container doesn't work
    3 projects | /r/mikrotik | 7 Mar 2023
    I decided to setup a 2 node replicated cluster with Pi-Hole using this excellent collection of scripts - https://github.com/vmstan/gravity-sync You can probably adopt it to use AdGuard since it has even simpler configuration than Pi-Hole. Here are some ideas how to do that here - https://github.com/AdguardTeam/AdGuardHome/issues/573

What are some alternatives?

When comparing docker-pi-hole and gravity-sync you can also consider the following projects:

Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface

docker-pihole-unbound - Run Pi-Hole + Unbound on Docker

docker-pihole-sync - A Docker Container To Sync Two Piholes

pihole-updatelists - Update Pi-hole's lists from remote sources easily

crowdsec - CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.

AdGuardHome - Network-wide ads & trackers blocking DNS server

pi-hole-keepalived

watchtower - A process for automating Docker container base image updates.

caddy-docker-proxy - Caddy as a reverse proxy for Docker

docker-wireguard

docker-icloudpd - An Alpine Linux 3.19.0 container for the iCloud Photos Downloader command line utility

log2ram - ramlog like for systemd (Put log into a ram folder)