| Crates.io | synchronizer |
| lib.rs | synchronizer |
| version | 0.1.1 |
| created_at | 2025-04-24 12:29:45.43397+00 |
| updated_at | 2025-04-24 13:55:26.162919+00 |
| description | Little daemon service to synchronize all your containers across devices - Keep Your Cluster in Harmony |
| homepage | |
| repository | https://gitlab.com/TenTypekMatus/synchronizer |
| max_upload_size | |
| id | 1647166 |
| size | 62,109 |
This little tool helps you keep your container configurations (think docker-compose.yml) in sync across multiple servers. It's super useful when you want to make sure everything's running the same way across your cluster. Basically, it watches one "main" server and automatically copies changes to the others. We highly recommend running this thing in a container for easier setup and maintenance.
synchronizer.yml file.docker compose up -d (or the Podman equivalent) to update cleanly.which Command: Make sure the which command is installed.Grab the Image:
docker pull registry.gitlab.com/tentypekmatus/synchronizer/synchronizer:latest
Set Up Your Container:
Here's a basic docker-compose.yml to get you started:
---
services:
synchronizer:
image: registry.gitlab.com/tentypekmatus/synchronizer/synchronizer:latest
volumes:
- ~/.ssh:/root/.ssh:ro # Wherever your ssh keys are.
- ~/.synchronizer.yml:/root/.synchronizer.yml:ro # Or somewhere else
networks:
- synchronizer_net
restart: unless-stopped
networks:
synchronizer_net:
driver: bridge
Fire It Up:
docker compose up -d
synchronizer.yml)This service looks for a file called .synchronizer.yml. Inside a container, it expects to find it at the home directory of a container. If you're running it directly on your machine, it'll look in your home directory (~/.synchronizer.yml).
The first time you run it, it'll create a blank synchronizer.yml file for you if one doesn't exist. Then, you need to fill in the details:
hosts:
- ["user", "192.168.1.10"] # Your "main" server
- ["user", "192.168.1.11"] # Another server
backend: Docker # Or use Podman
file: "/path/to/your/docker-compose.yml" # Optional: Defaults to ~/docker-compose.yml
hosts: A list of server details: ["username", "IP address"]. The first one in the list is the "main" server that it watches for changes.backend: Tell it whether you're using Docker or Podman.file: Where your docker-compose.yml (or similar) is located. If you don't specify, it'll assume it's in your home directory.Since we're recommending the container route, just manage the container itself using Docker Compose or similar tools. Make sure it restarts automatically if it crashes. That's it!