Skip to content

How to setup AnyCable with Docker #149

Answered by Envek
El-Potato-Slayer asked this question in Q&A
Discussion options

You must be logged in to vote

You need to provide database address to anycable service too.

Either include backend_environment to anycable service environment (and make sure they use the same hash-style definition) or provide DATABASE_URL (or your seemingly custom DATABASE_HOST) env var to anycable service explicitly.

  web: &backend
    environment: &backend_environment
      DATABASE_HOST: db
      ANYCABLE_REDIS_URL: redis://redis:6379/0

  anycable:
    <<: *backend
    environment:
      <<: *backend_environment
      ANYCABLE_RPC_HOST: 0.0.0.0:50051
      ANYCABLE_DEBUG: 1

Please note that I also moved ANYCABLE_REDIS_URL to web as Web processes often also need to know where AnyCable Redis is to send broadcasts f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@El-Potato-Slayer
Comment options

Answer selected by El-Potato-Slayer
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