add clustering

This commit is contained in:
Graham McIntire 2025-07-07 16:41:14 -05:00
parent 5ad101a69e
commit 9a6f649157
No known key found for this signature in database

View file

@ -82,6 +82,19 @@ if config_env() == :prod do
aprs_is_password: System.get_env("APRS_PASSCODE"),
env: :prod
# Configure libcluster for Dokku clustering
config :libcluster,
topologies: [
dokku: [
strategy: Cluster.Strategy.DNSPoll,
config: [
polling_interval: 5_000,
query: System.get_env("DOKKU_DNS_CLUSTER_QUERY", "tasks.#{System.get_env("DOKKU_APP_NAME", "aprsme")}"),
node_basename: System.get_env("DOKKU_APP_NAME", "aprsme")
]
]
]
# ## Configuring the mailer
#
# In production you need to configure the mailer to use a different adapter.