The flyctl
CLI should be setting up the FLY_CONSUL_URL
for you. What version of flyctl
are you running?
Also, we’ve recently moved to a new method of high availability Postgres in a new repo called postgres-flex. It uses repmgr
instead of Stolon for replication. We have a post on the new setup here: Improved Postgres Clustering with repmgr - Preview