mgwidmann
Having a lot of trouble getting this to work with a local Docker instance… I am trying to basically do the following:
- Run
docker-compose up(on my machine or a remote) - Start a local
iexand start:observer - Use the observer gui to connect to the remote host
I have figured out I need to do the following (but theres likely more I’m missing)
- Add
:runtime_toolsto the:extra_applicationssection of mymix.exsfile. - Expose the epmd port 4369 (maybe? I read somewhere it doesn’t allow external connections)
- Set the cookie and name of the app
I cannot get a Node.ping/1 from my local to the docker instance to go through. Connecting from within the docker instance works fine but it doesnt have the display necessary to run observer (and I don’t want to forward it because I plan to use this against a remote docker in prod and I dont want the observer gui included). What am I missing?
Here are some of the resources I’ve come across (none of which have been any help)
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
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
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
bitwalker
My recommendation would be to use ssh and forward the ports across that connection, it won’t require you to expose the node, the connection will be encrypted, and you can secure it much better. To connect remotely though, you need to expose the epmd port, as well as the ephemeral range used for individual sessions, and make sure to configure that range in the kernel settings for distribution (you can find those in the erlang man page for the kernel app). I believe that’s all that’s needed. You can definitely connect to epmd remotely, that’s key to how erlang distribution works.
mgwidmann
Yeah so I changed the
epmdport in my docker instance so it wouldn’t conflict with the one running on my local machine by setting the environment variableERL_EPMD_PORTto43699instead of the default4369. But it sounds like I need to expose the port in which erlang distribution connects through. When I connect to the docker instance and runepmd -namesit outputs a random port value, how can I set that to a specific range that I can then expose through docker?mgwidmann
Ok so I found how to set the min and max ports, heres my
vm.argsfile:And my
DockerfilehasWith my docker-compose.yml
And when I connect to my docker instance and run
epmd -namesI see the following:But when I connect from my local:
matiso
The reason it doesn’t work is because
epmdwill only listen on the loopback interface. When connecting from your machine,dockerbinds the exposed port over the bridge interface, andepmdrejects it because of that.So far I haven’t found a working solution, but I’m on it. Will report back if I get it running.
mgwidmann
Found anything on this? I’m not sure I understand how EPMD would work if it only ever listened on loopback, how would machines connect then?
OvermindDL1
I have them communicate via SSH Tunnels, but you can always set ‘public’ names
-nametoo. I highly recommend having EPMD communicate over tunnels as even just being publicly accessible can crash the BEAM systems via a variety of ways even before they connect a node.kaashyapan
This has been a lifesaver
https://github.com/chazsconi/connect-remote-elixir-docker