add compose
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s

This commit is contained in:
2026-04-15 13:44:53 -05:00
parent d98c219398
commit 24d8a58bbc
2 changed files with 22 additions and 4 deletions

View File

@@ -21,7 +21,17 @@ config :logger, level: logger_level
config :logger, :console, format: {Logger.Formatter, :format}
if amqp_url = System.get_env("AMQP_URL") do
rabbitmq_host = System.get_env("RABBITMQ_HOST", "localhost")
rabbitmq_vhost = System.get_env("RABBITMQ_VHOST", "/")
rabbitmq_username = System.get_env("RABBITMQ_USERNAME")
rabbitmq_password = System.get_env("RABBITMQ_PASSWORD")
amqp_url =
if rabbitmq_username && rabbitmq_password do
"amqp://#{rabbitmq_username}:#{rabbitmq_password}@#{rabbitmq_host}/#{rabbitmq_vhost}"
end
if amqp_url do
config :policy_service, :amqp_url, amqp_url
end