GithubHelp home page GithubHelp logo

Comments (2)

oceylantr avatar oceylantr commented on June 25, 2024

I found a workaround, may be a clue:
started cluster with a new Bridged network with no extra feature:

sudo docker run --network=sophos_network -d -t -h mim1 --name mim1 mongooseim/mongooseim-docker
sudo docker run --network=sophos_network --add-host=mim1:172.18.0.2 -d -t -h mim2 --name mim2 -e CLUSTER_WITH=mim1 mongooseim/mongooseim-docker
sudo docker run --network=sophos_network --add-host=mim1:172.18.0.2 -d -t -h mim3 --name mim3 -e CLUSTER_WITH=mim1 mongooseim/mongooseim-docker

and Voila!
sudo docker exec -it mim1 bash
mongooseimctl mnesia info | grep "running db nodes"
running db nodes = [mongooseim@mim3,mongooseim@mim2,mongooseim@mim1]

from mongooseim-docker.

ppikula avatar ppikula commented on June 25, 2024

I played a bit with it and I found out, that with links approach you need to add link to mim2 for the node3 as well.
The following seems to work for me:

docker run -d -t -h mim1 --name mim1 mongooseim/mongooseim-docker
docker run -d -t -h mim2 --name mim2 --link mim1:mim1 -e CLUSTER_WITH=mim1 mongooseim/mongooseim-docker
docker run -d -t -h mim3 --name mim3 --link mim1:mim1  --link mim2:mim2 -e CLUSTER_WITH=mim1 mongooseim/mongooseim-docker

or completely on AWS platform

Are you using ECS for it? If so I think you can ditch links and use DNS based service discovery, check the following link: https://aws.amazon.com/blogs/compute/service-discovery-for-amazon-ecs-using-dns/

WARNING: This repo is not maintained for ~2 years, be aware it might use outdated Mongoose IM version. You can check their official image instead of this one.

from mongooseim-docker.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.