feat: configure dnscluster to allow multi-node

* Configure `docker-compose` to scale at least 2 nodes.
* Add script to start service with proper naming
* Create custom resolver.
  * This is not strictly necessary.
This commit is contained in:
2024-09-20 21:54:20 +00:00
parent 76d5fc9adf
commit b5eca5326f
8 changed files with 42 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
import Config
config :wabanex,
dns_cluster_query: :ignore,
dns_cluster_resolver: Wabanex.DevDNSClusterResolver
# Configure your database
config :wabanex, Wabanex.Repo,
database: "wabanex_dev",

View File

@@ -1,5 +1,7 @@
import Config
config :wabanex, dns_cluster_query: System.get_env("DNS_CLUSTER_QUERY") || :ignore
config :wabanex, Wabanex.Repo,
username: System.get_env("POSTGRES_USER") || "postgres",
password: System.get_env("POSTGRES_PASS") || "postgres",