Hey all,
I’m trying to get a simple Phoenix app up and running on Fly.io and I ran into a problem I’d like to understand better.
I’m trying to connect to an external DB and I figured it doesn’t support IPV6 connections. That said, I tried setting ENV ECTO_IPV6 false
in my Dockerfile but I still got my Repo configured with IPV6. I then debugged the code by adding a simple:
IO.inspect System.get_env("ECTO_IPV6"), label: "ECTO_IPV6: "
and this keeps saying the ECTO_IPV6 is "true"
even though the env var is set in my Dockerfile. I’m might be missing something, but how can I set this ECTO_IPV6 to false?
Btw, I tested the app by hard-coding the socket options and the connection worked as expected.
Thanks,
Angelo