If anyone is interested, I am putting together an HA Cluster using Docker Compose. Still a work in progress, but I have the Masters/Satellites built with IcingaWeb2 and all the bells and whistles working. You can find it on GitHub.
Last time a built an HA Cluster with Icinga2 was over 7 years ago, and it’s still used today.
I did realize something, from way back… Creating a Master 1 on a VM, cloning the VM, and renaming it as Master 2 was so easy. Compared to creating the HA Cluster with the Docker containers.
For the reusable images, needed to make sure the data was updated. Ignoring any cached data. --no-cacheflag does not work with Composer. Need to add no_cache to the yaml.
top:
build:
context: ./Dockerfile
no_cache: true
In summary, extra steps are needed to updated a reusable image.
docker compose up top --build --no-cache # ERROR
docker compose up top --build # uses: no_cache: true
The --nocache does not work for Docker Compose. Need to use: no_cache: true