corani / groupcache-memberlist

Sample project of using hashicorp/memberlist with mailgun/groupcache in docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker groupcache-memberlist

This is a sample project for using https://github.com/hashicorp/memberlist to manage the peers of https://github.com/mailgun/groupcache in docker-compose. It spins up three containers containing the same app joining the same group.

Usage:

$ ./build.sh -d         # builds the docker image
$ ./build.sh -up        # starts the instances
$ ./build.sh -down      # removes the instances

Prerequisites:

  • Docker
  • Docker Compose

Note: The instances expose an HTTP endpoint on 8080, 8081 and 8082 respectively.

About

Sample project of using hashicorp/memberlist with mailgun/groupcache in docker-compose

License:MIT License


Languages

Language:Go 78.0%Language:Shell 16.0%Language:Dockerfile 3.4%Language:HTML 2.7%