https://github.com/corani/memberlist-websocket-transport
Sample project of using a websocket transport for hashicorp/memberlist
https://github.com/corani/memberlist-websocket-transport
Last synced: 11 days ago
JSON representation
Sample project of using a websocket transport for hashicorp/memberlist
- Host: GitHub
- URL: https://github.com/corani/memberlist-websocket-transport
- Owner: corani
- License: mit
- Created: 2023-03-17T10:03:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T10:06:55.000Z (over 3 years ago)
- Last Synced: 2025-01-09T20:48:28.931Z (over 1 year ago)
- Language: Go
- Size: 1.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Memberlist Websocket Transport
This is a sample project for using a Websocket Transport with https://github.com/hashicorp/memberlist in docker-compose. It spins up three containers containing the same app, with the second and third instances joining the first one.
Usage:
```bash
$ ./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, where they list their known peers.
## Warning
This is a POC, do not use!