darnahsan
Livebook attached node in docker
I am trying to connect livebook to a running phoenix app to do some BI analysis. Following these fly.io guides
https://fly.io/docs/app-guides/elixir-livebook-connection-to-your-app/#getting-the-node-name
Clustering Your Application · Fly Docs
I have my phoenix app and livebook both as containers and using docker-compose to launch. Both are behind a reverse proxy with a load balancer between the app and proxy.
the local IP for phoenix app is 10.0.3.22 running on an internal port 4000 but when I try the attach node mode and enter < containre_name > : < container local ip > with the cookie value it shows node unreachable.
Livebook is being accessed from the web but it would need local connection ip as the connection is internal ?
First Post!
moogle19
You probably only have the port 4000 exposed from the docker container, which will not work.
You could read about epmd and how to setup erlang / elixir without epmd to only expose one extra port to make it work.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









