Deploying Clickhouse to an existing Phoenix Application

Alright, we’re getting further.

Since this is a private this is only accessible via ipv6, thats my understanding so makes sense why it cannot connect. So the fix would be to enable ipv6.

I’m using Ecto.Adapters.ClickHouse, and inet can be enabled by doing the following.

config :app, App.DigestRepo,
    hostname: "app-clickhouse.internal",
    port: 8123,
    database: "events",
    transport_opts: [inet6: true]

And it worked!