Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed ping error running inside container #257

Open
rocktz opened this issue Feb 8, 2022 · 0 comments
Open

Failed ping error running inside container #257

rocktz opened this issue Feb 8, 2022 · 0 comments

Comments

@rocktz
Copy link

rocktz commented Feb 8, 2022

Hello
I am trying to run 2 instance of my service (on RockyLinux) which uses memberlist for discovery (using DefaultWANConfig() )
The cluster starts, add the member but then drop the node.

Here is my docker-compose file relevant extract

version: "3.9"

networks:
  backend-network:
    driver: bridge

services:
  calendar-1:
    ports:
      - "9998:9999"
    environment:
      - BOTNET_MEMBERLIST_ADVERTISE_ADDRESS=${HOST_MACHINE_IP}:9998
      - BOTNET_MEMBERLIST_BIND_ADDRESS=0.0.0.0:9999
      - BOTNET_MEMBERLIST_KNOWN_NODES=
  calendar-2:
    depends_on:
      - calendar-1
    networks:
      - backend-network
    ports:
      - "9997:9999"
    environment:
      - BOTNET_MEMBERLIST_ADVERTISE_ADDRESS=${HOST_MACHINE_IP}:9997
      - BOTNET_MEMBERLIST_BIND_ADDRESS=0.0.0.0:9999
      - BOTNET_MEMBERLIST_KNOWN_NODES=${HOST_MACHINE_IP}:9998

where
HOST_MACHINE_IP =public ip of the host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant