GravitySync - Syncing multiple pi-holes


DuzAwe

Recommended Posts

  • 3 months later...
  • 1 year later...

I'm looking at this now. Following the posted instructions at the github it doesn't say anything about the lack of SSH in the docker.

 

The dev says it does support docker (reddit), but mine has no SSH. Perhaps I should manually add ssh? Like this.?

 

# which ssh
# <returns nothing>

 

ssh pihole docker.png

 

 

This is funky

"For both standard and container based Pi-hole deployments, Gravity Sync will run directly on the host OS and not inside of the container image."

https://github.com/vmstan/gravity-sync/wiki/System-Requirements

So I'd run the curl command just in the normal unRaid command prompt? That seems dodgy.

Edited by dkerlee
Link to comment
  • 1 year later...

You can do that already in a LXC container and I already have an image for that available, currently you have to install it manually but it is working and running on my system just fine. The advantage is that you don't have to change any ports for Unraid because the LXC container has it's own dedicated IP address and you can use keepalived (which is also preinstalled) for high availability, so to speak if one goes down another one automatically will jump in.

 

https://github.com/ich777/unraid_lxc_pihole

 

The only downside is that you can't download it through the CA App just yet but you can do it manually and the steps on how to do that are pretty easy:

  1. Open up a Unraid terminal
  2. Issue this command in there to download the template:
    wget -O /tmp/lxc_container_template.xml https://github.com/ich777/unraid_lxc_pihole/raw/main/lxc_container_template.xml

     

  3. Close the Unraid terminal
  4. In the browser navigate to:
    http://YourUNRAIDIP/LXCAddTemplate

    (of course you have to change YourUNRAIDIP to your Unraid IP address)

  5. Make your changes and deploy the image (wait until the done button is displayed)

 

This will only work if you have the LXC plugin installed and configured properly!

 

Just make sure to read the README.md in the linked repository, I think I have described everything in there.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.