Skip to content

Trouble getting cluster working in docker-compose #129

Answered by tjosephs
tjosephs asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out. IP=0.0.0.0 was doing the exact opposite of what we were wanting it to. It was causing the nodes inside the container to bind to localhost. That led to the problems you described above. As soon as I removed that line, the nodes bound to the external IP address on the container and I was able to address them from my application container.

Final docker-compose.yml looked like this:

redis:
    image: grokzen/redis-cluster:latest
    ports:
      - '7000-7005:7000-7005'
      - '5000-5010:5000-5010'

About as easy as it gets.

Now we're up and running! Container and app seem to be working well! We're about to try it in AWS with ElastiCache. Once I know that's working I'll post b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tjosephs
Comment options

Comment options

You must be logged in to vote
1 reply
@tjosephs
Comment options

Answer selected by Grokzen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants