I’m trying to set up a CoucDB Cluster using the semi-official Docker image, though I’m struggling for days now trying different setups/options.
As CouchDB doesn’t seem to support IPv6 so far and also I need to define a NODENAME
I create individual apps with single nodes.
Though when I try to add the other nodes (apps) I get error messages, using the hostname app.fly.dev
or the apps public IPv4 “connection_closed”. But I can access Fauxton (the dashboard) on all apps and the logs aren’t really helpful.
Also tried app.internal
which results in {conn_failed,{error,nxdomain}}
And just tried, just in case, to set up custom domains though get the same connection_closed
error
I’m kinda lost, tried searching more Erlang specific but couldn’t get anything working, also not at all familiar with that language.
Uh and I forgot to mention, that it’s working locally using [this example] (GitHub - cacois/couchdb-docker-clustering-examples: Examples of successfully clustering CouchDB 2.1.1 in Docker containers) slightly tweaked, setting erlang cookie and nodename via its own env vars. That’s why I’m asking here as it seems to be a networking issue and not with the Docker image or CouchDB itself
Update: luckily normal replication does work correctly, so for now I’m just replicating between 2 apps (nodes) to have at least some resilience so I don’t loose data if a node (volume) would crash. This is sufficient for now while I MVP my app but I’d still like to get clustering working, too, for a great future