{"id":26264718,"url":"https://github.com/zebrajaeger/ipv6-watcher","last_synced_at":"2026-04-27T15:32:57.836Z","repository":{"id":281807258,"uuid":"946462663","full_name":"zebrajaeger/ipv6-watcher","owner":"zebrajaeger","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-11T08:04:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T16:31:22.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebrajaeger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T07:15:29.000Z","updated_at":"2025-03-11T08:04:07.000Z","dependencies_parsed_at":"2025-03-11T09:32:44.028Z","dependency_job_id":null,"html_url":"https://github.com/zebrajaeger/ipv6-watcher","commit_stats":null,"previous_names":["zebrajaeger/ipv6-watcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zebrajaeger/ipv6-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fipv6-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fipv6-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fipv6-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fipv6-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebrajaeger","download_url":"https://codeload.github.com/zebrajaeger/ipv6-watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fipv6-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32343370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-14T02:17:49.602Z","updated_at":"2026-04-27T15:32:57.818Z","avatar_url":"https://github.com/zebrajaeger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPv6 Prefix Watcher\n\nThis project provides a **Dockerized IPv6 Prefix Watcher**, which monitors changes to the global IPv6 prefix on a Linux server and automatically restarts a specified Docker container when a prefix change is detected.\n\n## Features\n- **Real-time monitoring** of IPv6 address changes using `ip monitor`\n- **Automatic restart** of a target container upon IPv6 prefix change\n- **Uses Docker API via `docker.sock`**, avoiding privileged mode\n- **Lightweight Node.js implementation**\n- **Includes a `docker-compose.yml` for easy setup**\n\n## Repository\nThis project is hosted on GitHub: [IPv6-Watcher Repository](https://github.com/zebrajaeger/ipv6-watcher.git)\n\n## Prerequisites\n- A **Linux server** with IPv6 enabled\n- **Docker and Docker Compose** installed\n- The target container must be **managed by Docker**\n\n## Installation\n### 1. Clone the Repository\n```sh\ngit clone https://github.com/zebrajaeger/ipv6-watcher.git\ncd ipv6-watcher\n```\n\n### 2. Configure Environment\nSet the target container name in the `docker-compose.yml` file:\n```yaml\n    environment:\n      - TARGET_CONTAINER=your-container-name\n```\nReplace `your-container-name` with the name of the container you want to restart.\n\n### 3. Start the Service\n```sh\ndocker-compose up -d\n```\n\n## How It Works\n1. The container runs `ip monitor address` to listen for network changes.\n2. When an IPv6 change is detected, it extracts the new **IPv6 prefix**, ignoring ULA (`fd00::/8`) addresses.\n3. If the public prefix has changed, the **target Docker container** is restarted.\n4. This ensures that your container always operates with an up-to-date IPv6 address.\n\n## Troubleshooting\n- **The script does not detect IPv6 changes:** Ensure IPv6 is enabled on your server and that the `ip` command is available.\n- **Target container is not restarting:** Verify that the container name is correct and that the Docker API via `docker.sock` is accessible.\n- **Permission errors:** Ensure that `/var/run/docker.sock` is properly mounted inside the container.\n\n## License\nMIT License. Feel free to modify and distribute.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fipv6-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebrajaeger%2Fipv6-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fipv6-watcher/lists"}