Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 1.08 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.08 KB

hiper

Automatically updates Hetzner Cloud Floating IP server assignments in a Docker Swarm.
This project was inspired by the blog post "Implementation of a Cloud HA infrastructure with Keepalived" written by Markus (@BackInBash) and some parts of the code were taken from hcloud-ip.

How it works

hiper relies on the automatic container rescheduling performed by Docker Swarm. Whenever a host goes down and this container happens to run on it, it will be started on another node, and hiper will then update the floating IP assigment.
I got the idea from this serverfault answer, but instead of DynDNS, I rely on floating IPs.

Usage

Note: The image is built using the very minimal scratch base image, so it only contains a single binary.

docker run -t --name hiper ghcr.io/zackplan/hiper

An example using docker compose can be found here.